cvs commit: src/lib/libc/stdtime strptime.c
Jacques Vidrine
nectar at FreeBSD.org
Sun Nov 16 20:19:16 PST 2003
nectar 2003/11/16 20:19:15 PST
FreeBSD src repository
Modified files:
lib/libc/stdtime strptime.c
Log:
Detect range errors when using the %s specifier. Previously, LONG_MAX
was rejected as a range error, while any values less than LONG_MIN
were silently substituted with LONG_MIN. Furthermore, on some
platforms `time_t' has less range than `long' (e.g. alpha), which may
give incorrect results when parsing some strings.
Revision Changes Path
1.35 +10 -3 src/lib/libc/stdtime/strptime.c
More information about the cvs-src
mailing list