diff options
author | peter <peter@FreeBSD.org> | 2002-09-03 04:34:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-09-03 04:34:10 +0000 |
commit | 2dc22e49268ddebe68cded7233384ee625be3a6d (patch) | |
tree | d0ac221786ea37c1b0d16321e110d967a03fe09d /lib/libc/stdtime/strftime.c | |
parent | 20072affec15c51574156e050f90e3cb9583209c (diff) | |
download | FreeBSD-src-2dc22e49268ddebe68cded7233384ee625be3a6d.zip FreeBSD-src-2dc22e49268ddebe68cded7233384ee625be3a6d.tar.gz |
Fix a nasty bug exposed by mktime() when time_t is significantly bigger
than 32 bits. It was trying to figure out things like the day of week
of when time_t is roughly 2^62 etc. Make a better guess for the starting
point for the binary search that works on both 32 and 64 bit types. I have
been using this for a while now.
Diffstat (limited to 'lib/libc/stdtime/strftime.c')
0 files changed, 0 insertions, 0 deletions