ref: 0477b1b63370b1e534643b574d3ee674591a218d
parent: f6377ae259b98f2f58350819abec5c988525de59
parent: 409453a6a1ea693dac7a0e487beb55577ad10869
author: Clownacy <[email protected]>
date: Tue Apr 7 10:03:54 EDT 2020
Merge branch 'accurate' into portable
--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -140,7 +140,7 @@
// Read data. Note that gTS.size may exceed the size of 'gTS.data' (TSC_BUFFER_SIZE)
fread(gTS.data, 1, gTS.size, fp);
- gTS.data[gTS.size] = 0;
+ gTS.data[gTS.size] = '\0';
fclose(fp);
// Set path
@@ -174,7 +174,7 @@
// Read Head.tsc. Note that head_size may exceed the size of 'gTS.data' (TSC_BUFFER_SIZE)
fread(gTS.data, 1, head_size, fp);
EncryptionBinaryData2((unsigned char*)gTS.data, head_size);
- gTS.data[head_size] = 0;
+ gTS.data[head_size] = '\0';
fclose(fp);
// Open stage's .tsc
@@ -191,7 +191,7 @@
// Read stage's tsc. Note that head_size + body_size may exceed the size of 'gTS.data' (TSC_BUFFER_SIZE)
fread(&gTS.data[head_size], 1, body_size, fp);
EncryptionBinaryData2((unsigned char*)&gTS.data[head_size], body_size);
- gTS.data[head_size + body_size] = 0;
+ gTS.data[head_size + body_size] = '\0';
fclose(fp);
// Set parameters