projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206ea8e
)
(widen): Cast alloca return value to proper type.
author
Jim Meyering
<jim@meyering.net>
Sat, 22 Mar 2003 19:42:42 +0000
(19:42 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 22 Mar 2003 19:42:42 +0000
(19:42 +0000)
lib/strftime.c
patch
|
blob
|
history
diff --git
a/lib/strftime.c
b/lib/strftime.c
index c96cabb34c9b51b3cf42a539510221e180025d0d..cf76c1f5e38e147ecb0f42264a1813cacfae7594 100644
(file)
--- 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