Mail Archives: djgpp/1994/08/29/06:04:46
The declaration of _timezone (and _altzone) in ctime.c is wrong. They are
declared as type 'time_t' which is an unsigned long. But these may very
well contain negative numbers, and should therefore be declared as type
'long'.
This is carried over in gettimeo.c, resulting in gettimeofday returning
strange values for tz_minuteswest when using TZ settings with negative
offsets.
--
Henrik Storner | "Man is the best computer we can put aboard a space-
(storner AT olicom DOT dk) | craft ... and the only one that can be mass produced
System Engineering | with unskilled labor."
Olicom Denmark | Wernher von Braun
- Raw text -