diff options
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); |