evalEmpire / y2038

Fix time.h on 32 bit machines to work past the year 2038 bug
https://github.com/schwern/y2038/wiki
MIT License
114 stars 24 forks source link

Compiling on Red Hat 4 32 bit, size of string initializer issue #3

Closed kmarsh-zz closed 14 years ago

kmarsh-zz commented 14 years ago

Thank you for writing this package, it is badly needed!

I had to change time64.c lines 157 and 161 from array size [7][3] to [7][4] in order to make room for the implicit NULL character C places at the end of statically initialized strings.

After that, it compiled and ran in my test program without issue on RH4 (kernel 2.6.18+years of red hat patching).

Keep up the good work! -Ken

schwern commented 14 years ago

Good catch, thanks! And glad to hear you're making use of it.