Bug fix: LogData could hang up.

If the stored pointer was older than the last stored data (which
generally should not happen) it would get stuck in a loop attempting to
increment the pointer.