From: Paul Eggert Date: Sat, 27 Sep 2003 14:30:57 +0000 (+0000) Subject: (error_tail): Don't cast alloca to (void *); it's already (void *). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22c1c15d0a29a1b7ea75456abe3f7062f835c887;p=pspp (error_tail): Don't cast alloca to (void *); it's already (void *). --- diff --git a/lib/error.c b/lib/error.c index 16228c413e..b6af64e976 100644 --- 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);