diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-22 19:42:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-22 19:42:42 +0000 |
commit | 06fc494da329877fce5f0948220e50a77555b54f (patch) | |
tree | 9f35b921c25844632dad75811fab5e6d398f5f06 /lib | |
parent | 206ea8eee6b4eebaf93ae80fcbfe58cc0d6f9b2b (diff) | |
download | coreutils-06fc494da329877fce5f0948220e50a77555b54f.tar.xz |
(widen): Cast alloca return value to proper type.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strftime.c | 2 |
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 |