fixed the fix

This commit is contained in:
2022-09-02 04:03:40 +10:00
parent ea3ca2751c
commit 90d18c7520

View File

@@ -407,7 +407,7 @@ static size_t globalPrintCount = 0;
static char quotes = 0; //set to 0 to not show string quotes static char quotes = 0; //set to 0 to not show string quotes
static void printToBuffer(const char* str) { static void printToBuffer(const char* str) {
while (strlen(str) + globalPrintCount > globalPrintCapacity) { while (strlen(str) + globalPrintCount + 1 > globalPrintCapacity) {
int oldCapacity = globalPrintCapacity; int oldCapacity = globalPrintCapacity;
globalPrintCapacity = GROW_CAPACITY(globalPrintCapacity); globalPrintCapacity = GROW_CAPACITY(globalPrintCapacity);