diff options
author | wollman <wollman@FreeBSD.org> | 1999-01-21 17:22:59 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1999-01-21 17:22:59 +0000 |
commit | eb63a8058f661b6501ad66d148ede682ec3c7ca9 (patch) | |
tree | d1ca153fcab31c4db9b282be4abde93b0da2271a /lib/libc/stdtime/localtime.c | |
parent | 78cf17718823a5a0f70549acd4e7c7cd8b209fbb (diff) | |
download | FreeBSD-src-eb63a8058f661b6501ad66d148ede682ec3c7ca9.zip FreeBSD-src-eb63a8058f661b6501ad66d148ede682ec3c7ca9.tar.gz |
Merge from vendor branch: timezone file structure changes and doco.
Fix localtime.c to deal with new magic number field.
Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode1999a.tar.gz
Diffstat (limited to 'lib/libc/stdtime/localtime.c')
-rw-r--r-- | lib/libc/stdtime/localtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 9e130bd..6603336 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -327,7 +327,7 @@ register struct state * const sp; if (close(fid) != 0) return -1; p = buf; - p += sizeof tzhp->tzh_reserved; + p += (sizeof tzhp->tzh_magic) + (sizeof tzhp->tzh_reserved); ttisstdcnt = (int) detzcode(p); p += 4; ttisgmtcnt = (int) detzcode(p); |