summaryrefslogtreecommitdiff
path: root/lib/strftime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-22 19:42:42 +0000
committerJim Meyering <jim@meyering.net>2003-03-22 19:42:42 +0000
commit06fc494da329877fce5f0948220e50a77555b54f (patch)
tree9f35b921c25844632dad75811fab5e6d398f5f06 /lib/strftime.c
parent206ea8eee6b4eebaf93ae80fcbfe58cc0d6f9b2b (diff)
downloadcoreutils-06fc494da329877fce5f0948220e50a77555b54f.tar.xz
(widen): Cast alloca return value to proper type.
Diffstat (limited to 'lib/strftime.c')
-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