summarylogtreecommitdiffstats
path: root/onscripter-gbk-gcc-6.2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'onscripter-gbk-gcc-6.2.patch')
-rw-r--r--onscripter-gbk-gcc-6.2.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/onscripter-gbk-gcc-6.2.patch b/onscripter-gbk-gcc-6.2.patch
new file mode 100644
index 00000000000..23f2df364cd
--- /dev/null
+++ b/onscripter-gbk-gcc-6.2.patch
@@ -0,0 +1,13 @@
+diff --git a/ScriptHandler.cpp b/ScriptHandler.cpp
+index 534e256..97fae49 100644
+--- a/ScriptHandler.cpp
++++ b/ScriptHandler.cpp
+@@ -1003,7 +1003,7 @@ int ScriptHandler::readScript( char *path )
+
+ int ScriptHandler::readScriptSub( FILE *fp, char **buf, int encrypt_mode )
+ {
+- char magic[5] = {0x79, 0x57, 0x0d, 0x80, 0x04 };
++ unsigned char magic[5] = {0x79, 0x57, 0x0d, 0x80, 0x04 };
+ int magic_counter = 0;
+ bool newline_flag = true;
+ bool cr_flag = false;