From e09227248dd1296a7bbcb56f3d16e24a5fa111de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 11 Apr 2021 10:54:34 +0200 Subject: [PATCH] Image.X: Fix calls of alloca(). --- src/modules/Image/encodings/x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/Image/encodings/x.c b/src/modules/Image/encodings/x.c index 5e3f2fa5e3..1112c2ef35 100644 --- a/src/modules/Image/encodings/x.c +++ b/src/modules/Image/encodings/x.c @@ -941,9 +941,9 @@ static void image_x_decode_truecolor(INT32 args) check_c_stack((1 << rbits) + (1 << gbits) + (1 << bbits)); - *rtbl=alloca(1<<rbits); - *gtbl=alloca(1<<gbits); - *btbl=alloca(1<<bbits); + rtbl = alloca(1<<rbits); + gtbl = alloca(1<<gbits); + btbl = alloca(1<<bbits); if (!rtbl || !gtbl || !btbl) resource_error(NULL,0,0,"memory",(1<<rbits)+(1<<rbits)+(1<<rbits), -- GitLab