mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Fix computation of tzspec_len.
Without this it should never have worked that we can use the embedded envvar in the timezone data files for dates after the last matching rule.
This commit is contained in:
parent
29143408ae
commit
6355c99740
@ -1,5 +1,7 @@
|
||||
2009-06-15 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
|
||||
|
||||
[BZ #10211]
|
||||
* time/tzfile.c (__tzfile_compute): If we use the envvar format still
|
||||
handle leap seconds if they are available.
|
||||
|
@ -248,7 +248,7 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
|
||||
+ num_transitions * (8 + 1)
|
||||
+ num_types * 6
|
||||
+ chars
|
||||
+ num_leaps * 8
|
||||
+ num_leaps * 12
|
||||
+ num_isstd
|
||||
+ num_isgmt) - 1 : 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user