C client: fix segfaulting with release build on linux

This commit is contained in:
UnknownShadow200 2018-08-26 18:45:34 +10:00
parent 9d50f20dba
commit 84be529f9e

View File

@ -441,7 +441,7 @@ ReturnCode File_GetModifiedTime(STRING_PURE String* path, DateTime* time) {
ReturnCode File_Do(void** file, STRING_PURE String* path, int mode) {
UInt8 data[1024]; Platform_ConvertString(data, path);
*file = open(data, mode);
*file = open(data, mode, (6 << 6) | (4 << 3) | 4); /* rw|r|r */
return Nix_Return(*file != -1);
}