Please sign in to comment.
Correctly display timestamp in blackbox
On little endian architectures where time_t is 64-bit long integer could happen, that instead of displaying correct timestamp, random data was used, because of memcpy. Solution is to memcpy to real 32-bit variable and then assing this value to timestamp. This will let compiler decide endianity and store number correctly. Signed-off-by: Jan Friesse <email@example.com> Signed-off-by: Angus Salkeld <firstname.lastname@example.org>
- Loading branch information...