summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdtime/strptime.c')
-rw-r--r--lib/libc/stdtime/strptime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index 4c71eaa..f121d68 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -53,7 +53,7 @@
#ifdef LIBC_RCS
static const char rcsid[] =
- "$Id: strptime.c,v 1.3 1997/08/13 13:11:53 ache Exp $";
+ "$Id: strptime.c,v 1.4 1998/09/12 21:13:29 dt Exp $";
#endif
#ifndef lint
@@ -333,6 +333,8 @@ strptime(const char *buf, const char *fmt, struct tm *tm)
}
if (c == 'Y')
i -= 1900;
+ if (c == 'y' && i < 70)
+ i += 100;
if (i < 0)
return 0;
OpenPOWER on IntegriCloud