From eff939cc8f59790cbb029207f78a22232967efe7 Mon Sep 17 00:00:00 2001 From: Garritt McCune Date: Fri, 8 Jul 2022 16:30:56 +0000 Subject: [PATCH] Reset the buffer size, forgot to restore that to its intended size as 4 seems a bit small. --- src/tstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tstring.c b/src/tstring.c index 8df08f8..8f61502 100644 --- a/src/tstring.c +++ b/src/tstring.c @@ -96,7 +96,7 @@ void TStringRemoveRange(int startIndex, int count, TString* string) { if (startIndex < 0 || startIndex > string->Length) return; if (count <= 0 || count > string->Length - startIndex) return; - char buffer[4] = { 0 }; + char buffer[256] = { 0 }; unsigned int startByte = 0; unsigned int glyphCount = 0;