Author: pfg
Date: Wed Oct  1 22:18:07 2014
New Revision: 272387
URL: https://svnweb.freebsd.org/changeset/base/272387

Log:
  strptime: fix bug introduced in r272273.
  
  Reported by:  portmgr (antoine)
  Fix by:               Andrey Chernov, David Carlier
  PR:           137307 (follow up)

Modified:
  head/lib/libc/stdtime/strptime.c

Modified: head/lib/libc/stdtime/strptime.c
==============================================================================
--- head/lib/libc/stdtime/strptime.c    Wed Oct  1 21:37:32 2014        
(r272386)
+++ head/lib/libc/stdtime/strptime.c    Wed Oct  1 22:18:07 2014        
(r272387)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to