From owner-svn-src-all@FreeBSD.ORG Wed Oct 1 22:18:07 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1062474; Wed, 1 Oct 2014 22:18:07 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE8733B0; Wed, 1 Oct 2014 22:18:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s91MI78A046089; Wed, 1 Oct 2014 22:18:07 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s91MI78V046088; Wed, 1 Oct 2014 22:18:07 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201410012218.s91MI78V046088@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Wed, 1 Oct 2014 22:18:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r272387 - head/lib/libc/stdtime X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2014 22:18:07 -0000 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 + 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;