Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>

* time/tzset.c: Limit hours to 23, not 12.  From jaffer.
This commit is contained in:
Roland McGrath 1996-02-16 16:15:45 +00:00
parent 7c97bb094e
commit 1cbca0d93c
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,7 @@
Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* time/tzset.c: Limit hours to 23, not 12. From jaffer.
Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* Makeconfig (CFLAGS-.po): Use -pg instead of -p.

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -177,7 +177,7 @@ DEFUN_VOID(__tzset)
break;
}
tz_rules[0].offset *= (min(ss, 59) + (min(mm, 59) * 60) +
(min(hh, 12) * 60 * 60));
(min(hh, 23) * 60 * 60));
for (l = 0; l < 3; ++l)
{
@ -228,7 +228,7 @@ DEFUN_VOID(__tzset)
ss = 0;
case 3:
tz_rules[1].offset *= (min(ss, 59) + (min(mm, 59) * 60) +
(min(hh, 12) * (60 * 60)));
(min(hh, 23) * (60 * 60)));
break;
}
for (l = 0; l < 3; ++l)