mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 03:32:04 +00:00
08ff4e493a
Because it turns out sizeof(time_t) is 8 in 64 bit platforms, but that results in really broken 'pt' results, where half of the lines are 'invalid date' Also, endianness handling was swapped in the case of 'pt' and non-existent in the case of 'rax2 -t' (the latter actually did a weird hack to swap endianness twice and get valid results). Now rax2 -t supports the -e parameter to swap endianness. The usage of r_mem_copyendian with r_print now matches what's done in other places, with !p->big_endian instead of p->big_endian, because 0 means swap and 1 means do nothing. Terrible function. This also fixes some valgrind warnings about uninitialized values (when copying 4 bytes to a 8 byte time_t)