From 1b16405b490c9da161e526b31fafe2f11c1c6053 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 28 Aug 2024 15:02:16 +0200 Subject: [PATCH] (submit/os-backtrace-vla) os: backtrace: use fixed size array instead of vla The backtrace buffer size (BT_SIZE) is determined by compile time, so we can change BT_SIZE into a #define to turn vla into fixed array. Signed-off-by: Enrico Weigelt, metux IT consult --- os/backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/backtrace.c b/os/backtrace.c index e4cb91b1c..659126a6a 100644 --- a/os/backtrace.c +++ b/os/backtrace.c @@ -190,10 +190,10 @@ xorg_backtrace(void) #include #include +#define BT_SIZE 64 void xorg_backtrace(void) { - const int BT_SIZE = 64; void *array[BT_SIZE]; const char *mod; int size, i;