diff options
author | yjun | 2021-02-13 14:37:51 +0800 |
---|---|---|
committer | yjun | 2021-02-13 14:37:51 +0800 |
commit | 70e6ae9f882c8521c394a0b0e43316eb1fd0e4d1 (patch) | |
tree | 0867530efb61acf04e22b33d9c0b744a05141a58 /onscripter-gbk-gcc-6.2.patch | |
download | aur-70e6ae9f882c8521c394a0b0e43316eb1fd0e4d1.tar.gz |
initial commit
Diffstat (limited to 'onscripter-gbk-gcc-6.2.patch')
-rw-r--r-- | onscripter-gbk-gcc-6.2.patch | 13 |
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 000000000000..23f2df364cda --- /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; |