From 06fc494da329877fce5f0948220e50a77555b54f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 22 Mar 2003 19:42:42 +0000 Subject: (widen): Cast alloca return value to proper type. --- lib/strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/strftime.c b/lib/strftime.c index c96cabb34..cf76c1f5e 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 -- cgit v1.2.3-70-g09d2