summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-10-01 22:18:07 +0000
committerpfg <pfg@FreeBSD.org>2014-10-01 22:18:07 +0000
commit915870a50c532a8043db2519129e053efe914ad7 (patch)
tree7a437afeabfec3a76fd8bcc914c27ab21d3846e1 /lib
parent667a2b736994fabf5ccb434e354a82390b85607e (diff)
downloadFreeBSD-src-915870a50c532a8043db2519129e053efe914ad7.zip
FreeBSD-src-915870a50c532a8043db2519129e053efe914ad7.tar.gz
strptime: fix bug introduced in r272273.
Reported by: portmgr (antoine) Fix by: Andrey Chernov, David Carlier PR: 137307 (follow up)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdtime/strptime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index ab08017..1d8dad9 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
#include "libc_private.h"
#include "timelocal.h"
#include "tzfile.h"
-#include <stdio.h>
+
static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
#define asizeof(a) (sizeof(a) / sizeof((a)[0]))
@@ -342,6 +342,7 @@ label:
if (i == asizeof(tptr->weekday))
return (NULL);
+ buf += len;
tm->tm_wday = i;
flags |= FLAG_WDAY;
break;
OpenPOWER on IntegriCloud