projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f8e706
)
(error_tail): Don't cast alloca to (void *); it's already (void *).
author
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 27 Sep 2003 14:30:57 +0000
(14:30 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 27 Sep 2003 14:30:57 +0000
(14:30 +0000)
lib/error.c
patch
|
blob
|
history
diff --git
a/lib/error.c
b/lib/error.c
index 16228c413ebcd9ea62e895588911391f7ccac11a..b6af64e976537285a4b7d39dbff5234eca482168 100644
(file)
--- a/
lib/error.c
+++ b/
lib/error.c
@@
-148,7
+148,7
@@
error_tail (int status, int errnum, const char *message, va_list args)
size_t len = strlen (message) + 1;
const wchar_t *wmessage = L"out of memory";
wchar_t *wbuf = (len < ALLOCA_LIMIT
- ?
(void *)
alloca (len * sizeof *wbuf)
+ ? alloca (len * sizeof *wbuf)
: len <= SIZE_MAX / sizeof *wbuf
? malloc (len * sizeof *wbuf)
: NULL);