From 8262abdea18cdb873b2012411bfebe131fb37d52 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 28 Jun 2023 18:46:36 -0500 Subject: std --- std/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/stdlib.c') diff --git a/std/stdlib.c b/std/stdlib.c index 3878817..4a650a4 100644 --- a/std/stdlib.c +++ b/std/stdlib.c @@ -41,7 +41,7 @@ int as_int(float x) { } char* istr(int x) { - char* snum[100]; + char* snum = malloc(12); sprintf(snum, "%d", x); //char* result = snum; return snum; -- cgit v1.2.3