Re: strptime() fix

2014-02-13 Thread Kenneth Westerback
On 13 February 2014 17:39, Todd C. Miller wrote: > Correct, though I prefer the following for clarity. > > - todd > > Index: lib/libc/time/strptime.c > === > RCS file: /home/cvs/openbsd/src/lib/libc/time/strptime.c,v > retrieving rev

Re: strptime() fix

2014-02-13 Thread Todd C. Miller
Correct, though I prefer the following for clarity. - todd Index: lib/libc/time/strptime.c === RCS file: /home/cvs/openbsd/src/lib/libc/time/strptime.c,v retrieving revision 1.15 diff -u -r1.15 strptime.c --- lib/libc/time/strptime.

strptime() fix

2014-02-13 Thread David Higgs
As of lib/libc/time/strptime.c r1.15, certain conversions will perform calculations using the provided tm_mday value, which will frequently produce incorrect values for tm_mday and tm_yday. Apologies in advance for the mangled patch. Thanks. --david Compare runs of the test program below: /* s