From 06b5432233f5f298adfdc9522ae88bfa10995118 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 3 Mar 2000 08:13:22 +0000 Subject: [PATCH] Update. 2000-03-01 Andreas Jaeger * time/getdate.c (check_mday): Fix check for february. Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA , closes PR libc/1617 and PR libc/1619. --- ChangeLog | 6 ++++++ time/getdate.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f43d093b8d..a4c837e555 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-03-01 Andreas Jaeger + + * time/getdate.c (check_mday): Fix check for february. + Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA + , closes PR libc/1617 and PR libc/1619. + 2000-03-02 Andreas Jaeger * posix/unistd.h: __THROW has to precede __attribute__, otherwise diff --git a/time/getdate.c b/time/getdate.c index 01bd2db0ea..626fb49d7a 100644 --- a/time/getdate.c +++ b/time/getdate.c @@ -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 , 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; }