summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/strftime.c2
1 files changed, 1 insertions, 1 deletions
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