* time/tzset.c (__tzset_parse_tz): DST offset must also allow hour

value of 24.
This commit is contained in:
Ulrich Drepper 2009-02-05 20:09:58 +00:00
parent 52de761a93
commit 970aa10f95
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2009-02-05 Ulrich Drepper <drepper@redhat.com> 2009-02-05 Ulrich Drepper <drepper@redhat.com>
* time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
value of 24.
* intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication. * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
* sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991-2002,2003,2004,2007 Free Software Foundation, Inc. /* Copyright (C) 1991-2002,2003,2004,2007,2009 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -244,7 +244,7 @@ __tzset_parse_tz (tz)
ss = 0; ss = 0;
case 3: case 3:
tz_rules[1].offset *= (min (ss, 59) + (min (mm, 59) * 60) + tz_rules[1].offset *= (min (ss, 59) + (min (mm, 59) * 60) +
(min (hh, 23) * (60 * 60))); (min (hh, 24) * (60 * 60)));
break; break;
} }
for (l = 0; l < 3; ++l) for (l = 0; l < 3; ++l)