mirror of https://github.com/nirenjan/libx52.git
Prior to this change, the assumption was that localtime/gmtime would never fail, regardless of the time value provided to it. However, testing on an Ubuntu 20.04 machine revealed that the representable range of time_t was about 56 bits, values that exceed a 56 bit representation would cause localtime/gmtime to return a NULL pointer. This change replaces the use of localtime/gmtime with their corresponding thread-safe variants, and checks the return value against NULL. If it matches a NULL value, then it will return an error and not update the clocks. |
||
---|---|---|
.. | ||
libusbx52 | ||
libx52 | ||
libx52util | ||
Makefile.am |