From 1872bd344f90d29c0200fbfd6920304cbc189230 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 18 Aug 2019 08:36:50 -0500 Subject: [PATCH] Address #158 Use string/join to prevent stack overflow. --- auxlib/cook.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auxlib/cook.janet b/auxlib/cook.janet index 307390d5..48fa3362 100644 --- a/auxlib/cook.janet +++ b/auxlib/cook.janet @@ -322,7 +322,7 @@ (file/write out "#include \n" "static const unsigned char bytes[] = {" - ;(interpose ", " chunks) + (string/join (interpose ", " chunks)) "};\n\n" "const unsigned char *" name "_embed = bytes;\n" "size_t " name "_embed_size = sizeof(bytes);\n")