mirror of git://git.musl-libc.org/musl
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.
This commit is contained in:
parent
e2ed37bc15
commit
75be448958
|
@ -177,7 +177,7 @@ static void do_tzset()
|
||||||
int scale = 2;
|
int scale = 2;
|
||||||
if (sizeof(time_t) > 4 && map[4]=='2') {
|
if (sizeof(time_t) > 4 && map[4]=='2') {
|
||||||
size_t skip = zi_dotprod(zi+20, VEC(1,1,8,5,6,1), 6);
|
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++;
|
scale++;
|
||||||
} else {
|
} else {
|
||||||
trans = zi+44;
|
trans = zi+44;
|
||||||
|
|
Loading…
Reference in New Issue