aboutsummaryrefslogtreecommitdiff
path: root/std/stdlib.c
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-28 22:10:41 -0500
committerCody <cody@codyq.dev>2023-06-28 22:10:41 -0500
commitc4d6a1229c35cc889a1db53cf1c9d87d2f662238 (patch)
treed49d20c7057b520b9140559333cba8a918242116 /std/stdlib.c
parent1349ebd2fc2a08a45c8e138002c5254ee6978540 (diff)
parent8262abdea18cdb873b2012411bfebe131fb37d52 (diff)
downloadsloth-c4d6a1229c35cc889a1db53cf1c9d87d2f662238.tar.gz
Merge branch 'master' of github.com:slothlang/slothlang
Diffstat (limited to 'std/stdlib.c')
-rw-r--r--std/stdlib.c2
1 files changed, 1 insertions, 1 deletions
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;