From 22c1c15d0a29a1b7ea75456abe3f7062f835c887 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 27 Sep 2003 14:30:57 +0000 Subject: [PATCH] (error_tail): Don't cast alloca to (void *); it's already (void *). --- lib/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2