diff options
-rw-r--r-- | lib/libc/stdtime/strptime.c | 3 |
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; |