aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-03-03 08:13:22 +0000
committerAndreas Jaeger <aj@suse.de>2000-03-03 08:13:22 +0000
commit06b5432233f5f298adfdc9522ae88bfa10995118 (patch)
tree81d1f9c083828c311195e87a1751c51664d356a8 /time
parent901a5bd7f40dd8431490f80c1e50d6709245ce75 (diff)
downloadglibc-06b5432233f5f298adfdc9522ae88bfa10995118.zip
glibc-06b5432233f5f298adfdc9522ae88bfa10995118.tar.gz
glibc-06b5432233f5f298adfdc9522ae88bfa10995118.tar.bz2
Update.
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.
Diffstat (limited to 'time')
-rw-r--r--time/getdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/getdate.c b/time/getdate.c
index 01bd2db..626fb49 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 <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;
}