From 5b867c9191283707733d948fd2f3cb4d5b959b7e Mon Sep 17 00:00:00 2001 From: Jim Ursetto Date: Thu, 12 Jan 2012 01:05:01 -0600 Subject: [PATCH] Ensure we C_alloc enough stack space in C_string_to_symbol. Fixes a crash when built with LLVM. Plain gcc tends to round up. --- runtime.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/runtime.c b/runtime.c index bb35eb4..dc1a7c3 100644 --- a/runtime.c +++ b/runtime.c @@ -7080,7 +7080,7 @@ void allocate_vector_2(void *dummy) void C_ccall C_string_to_symbol(C_word c, C_word closure, C_word k, C_word string) { int len, key; - C_word s, *a = C_alloc(6); /* 6 <=> 1 bucket (pair) + 1 symbol */ + C_word s, *a = C_alloc(C_SIZEOF_SYMBOL + C_SIZEOF_BUCKET); C_char *name; if(c != 3) C_bad_argc(c, 3); -- 1.7.6.1