Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2014 22:18:07 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272387 - head/lib/libc/stdtime
Message-ID:  <201410012218.s91MI78V046088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410012218.s91MI78V046088>