]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Fri, 3 Mar 2000 08:13:22 +0000 (08:13 +0000)
committerAndreas Jaeger <aj@suse.de>
Fri, 3 Mar 2000 08:13:22 +0000 (08:13 +0000)
2000-03-01  Andreas Jaeger  <aj@suse.de>

* time/getdate.c (check_mday): Fix check for february.
Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
<yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.

ChangeLog
time/getdate.c

index f43d093b8d51ea073eb2926c16481c41ee1202c4..a4c837e55587a5e241d0c448e21b67b02b63e81c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-03-01  Andreas Jaeger  <aj@suse.de>
+
+       * time/getdate.c (check_mday): Fix check for february.
+       Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
+       <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
+
 2000-03-02  Andreas Jaeger  <aj@suse.de>
 
        * posix/unistd.h: __THROW has to precede __attribute__, otherwise
index 01bd2db0ea07d8925abbff269ac46c914724ec24..626fb49d7a22c498ae4c3bdbcfcbba1a9cd58e0a 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert a string representation of time to a time value.
-   Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
 
@@ -91,7 +91,7 @@ check_mday (int year, int mon, int mday)
        return 1;
       break;
     case 1:
-      if (mday >= 1 && mday < (__isleap (year) ? 29 : 28))
+      if (mday >= 1 && mday <= (__isleap (year) ? 29 : 28))
        return 1;
       break;
     }