mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
fixed the fix
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user