From: Jim Meyering Date: Fri, 11 Apr 2003 15:00:23 +0000 (+0000) Subject: (widen): Cast alloca return value to proper type. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb89595c8f7c1b0f426a1c79250b4297edadaa2;p=pspp (widen): Cast alloca return value to proper type. --- diff --git a/lib/strftime.c b/lib/strftime.c index c96cabb34c..cf76c1f5e3 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -302,7 +302,7 @@ static const CHAR_T zeroes[16] = /* "0000000000000000" */ const char *__s = os; \ memset (&__st, '\0', sizeof (__st)); \ l = __mbsrtowcs_l (NULL, &__s, 0, &__st, loc); \ - ws = alloca ((l + 1) * sizeof (wchar_t)); \ + ws = (wchar_t *) alloca ((l + 1) * sizeof (wchar_t)); \ (void) __mbsrtowcs_l (ws, &__s, l, &__st, loc); \ } #endif