From d74568b3585c7090ab25939f333b94d72ca3dd71 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Wed, 16 Mar 2011 08:23:42 -0700 Subject: Replace alloca() with c99 or gcc extension variable-length arrays. --- memstomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memstomp.c') diff --git a/memstomp.c b/memstomp.c index 7339872..28a0320 100644 --- a/memstomp.c +++ b/memstomp.c @@ -223,7 +223,7 @@ static char* generate_stacktrace(void) { size_t k; bool b; - void **const buffer = alloca(sizeof(void*) * frames_max); + void *buffer[frames_max]; /* c99 or gcc extension */ n = real_backtrace(buffer, frames_max); assert(n >= 0); -- cgit