diff options
Diffstat (limited to 'lib/libc/time/strptime.c')
-rw-r--r-- | lib/libc/time/strptime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c index a1cbbdbb8e3..01330b20d4b 100644 --- a/lib/libc/time/strptime.c +++ b/lib/libc/time/strptime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strptime.c,v 1.23 2019/01/21 21:35:58 tedu Exp $ */ +/* $OpenBSD: strptime.c,v 1.24 2019/01/22 11:09:03 cheloha Exp $ */ /* $NetBSD: strptime.c,v 1.12 1998/01/20 21:39:40 mycroft Exp $ */ /*- * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc. @@ -332,7 +332,7 @@ literal: case 'S': /* The seconds. */ _LEGAL_ALT(_ALT_O); - if (!(_conv_num(&bp, &tm->tm_sec, 0, 61))) + if (!(_conv_num(&bp, &tm->tm_sec, 0, 60))) return (NULL); break; case 's': /* Seconds since epoch */ |