From 90d18c75208a422979be1d09ed3f3eaf49efddb5 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 2 Sep 2022 04:03:40 +1000 Subject: [PATCH] fixed the fix --- source/literal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/literal.c b/source/literal.c index 26cde2f..d368061 100644 --- a/source/literal.c +++ b/source/literal.c @@ -407,7 +407,7 @@ static size_t globalPrintCount = 0; static char quotes = 0; //set to 0 to not show string quotes static void printToBuffer(const char* str) { - while (strlen(str) + globalPrintCount > globalPrintCapacity) { + while (strlen(str) + globalPrintCount + 1 > globalPrintCapacity) { int oldCapacity = globalPrintCapacity; globalPrintCapacity = GROW_CAPACITY(globalPrintCapacity);