Skip to content

Commit

Permalink
Fix computation of tzspec_len.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Jun 15, 2009
1 parent 2914340 commit 6355c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion time/tzfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6355c99

Please sign in to comment.