From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30558 invoked by alias); 8 Aug 2018 21:59:57 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 30504 invoked by uid 9078); 8 Aug 2018 21:59:57 -0000 Date: Wed, 08 Aug 2018 21:59:00 -0000 Message-ID: <20180808215957.30501.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: strftime: fix over-enthusiastic fix from 0283642f35ce X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: fddc74d12bf7f765c04c3182a7237ecf23893d27 X-Git-Newrev: b9dab9f4c67471faf5c93726eb10573c2c398c51 X-SW-Source: 2018-q3/txt/msg00043.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b9dab9f4c67471faf5c93726eb10573c2c398c51 commit b9dab9f4c67471faf5c93726eb10573c2c398c51 Author: Corinna Vinschen Date: Wed Aug 8 23:59:16 2018 +0200 newlib: strftime: fix over-enthusiastic fix from 0283642f35ce Signed-off-by: Corinna Vinschen Diff: --- newlib/libc/time/strftime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 429ae99..9c884dc 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -327,7 +327,8 @@ locale, hard-coding the "C" locale settings. *len_ret = 0; return buf; } -# define _ctloc(x) (ctloc = __ctloc (ctlocbuf, _CurrentTimeLocale->x)) +# define _ctloc(x) (ctloc = __ctloc (ctlocbuf, _CurrentTimeLocale->x, \ + &ctloclen)) # endif #endif /* MAKE_WCSFTIME */