diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 429ae99ac..9c884dca9 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 */