summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-11-04 15:57:51 +0000
committerrofl0r <retnyg@gmx.net>2013-11-04 15:59:17 +0000
commit75be448958f18b230f9eedf8c44dccb9b4012099 (patch)
treee8d38411357f309abdec09545043f9b9f0e7dc42 /src
parente2ed37bc15fd4cf4ff1a258e1b8a6862077c04c5 (diff)
downloadmusl-75be448958f18b230f9eedf8c44dccb9b4012099.tar.gz
musl-75be448958f18b230f9eedf8c44dccb9b4012099.tar.bz2
musl-75be448958f18b230f9eedf8c44dccb9b4012099.tar.xz
musl-75be448958f18b230f9eedf8c44dccb9b4012099.zip
timezone parser: fix offset to transition table in 64bit code path
we need to skip to the second TZif header, which starts at skip+44, and then skip another header (20 bytes) plus the following 6 32bit values.
Diffstat (limited to 'src')
-rw-r--r--src/time/__tz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/__tz.c b/src/time/__tz.c
index 47964c4b..26f4ea4c 100644
--- a/src/time/__tz.c
+++ b/src/time/__tz.c
@@ -177,7 +177,7 @@ static void do_tzset()
int scale = 2;
if (sizeof(time_t) > 4 && map[4]=='2') {
size_t skip = zi_dotprod(zi+20, VEC(1,1,8,5,6,1), 6);
- trans = zi+skip+44+20;
+ trans = zi+skip+44+44;
scale++;
} else {
trans = zi+44;