summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-12-08 11:11:40 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-12-08 11:11:40 +0000
commitda906acc18d353b91218a764a1cec7892fa24fa4 (patch)
tree87291edd1751b6dd3cc4ed6a1a57d9321e9a2143 /lib/libc/stdtime
parent802528d8ff1b0f5e6eb9e269e754a3f677532993 (diff)
downloadFreeBSD-src-da906acc18d353b91218a764a1cec7892fa24fa4.zip
FreeBSD-src-da906acc18d353b91218a764a1cec7892fa24fa4.tar.gz
Accept 12 for %l, because it's logical to expect "%l:%M" to work for
"12:00" and because strftime(3) does the same.
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index 40ce9d9..7570381 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -258,7 +258,7 @@ label:
if (c == 'H' || c == 'k') {
if (i > 23)
return 0;
- } else if (i > 11)
+ } else if (i > 12)
return 0;
tm->tm_hour = i;
OpenPOWER on IntegriCloud