Reset the buffer size, forgot to restore that to its intended size as 4 seems a bit small.
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ void TStringRemoveRange(int startIndex, int count, TString* string) {
|
|||||||
if (startIndex < 0 || startIndex > string->Length) return;
|
if (startIndex < 0 || startIndex > string->Length) return;
|
||||||
if (count <= 0 || count > string->Length - startIndex) return;
|
if (count <= 0 || count > string->Length - startIndex) return;
|
||||||
|
|
||||||
char buffer[4] = { 0 };
|
char buffer[256] = { 0 };
|
||||||
unsigned int startByte = 0;
|
unsigned int startByte = 0;
|
||||||
unsigned int glyphCount = 0;
|
unsigned int glyphCount = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user