mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-23 13:09:58 +08:00
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.
This commit is contained in:
parent
f932280672
commit
7cd4e34f94
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user