Buffer overflow fix

The incrementation of a byte stored long (timestamp here) must take care of the buffer overflow.

Note that in the event that the code is still used in the year 36,536,598 it will not work any more (long overflow).