From feb17dbe627dd6e51e366844d44871ad33c854c0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 17 Mar 1998 09:04:52 +0000 Subject: Make %Y override an earlier %y (%y stuff gets delayed due to century specs). --- lib/libc/time/strptime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c index 996d212b9e8..6854137aa58 100644 --- a/lib/libc/time/strptime.c +++ b/lib/libc/time/strptime.c @@ -36,7 +36,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: strptime.c,v 1.3 1998/03/15 23:31:00 millert Exp $"; +static char rcsid[] = "$OpenBSD: strptime.c,v 1.4 1998/03/17 09:04:51 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -329,6 +329,7 @@ literal: if (!(_conv_num(&bp, &i, 0, INT_MAX))) return (0); + relyear = -1; tm->tm_year = i - TM_YEAR_BASE; break; -- cgit v1.2.3