mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
C client: fix segfaulting with release build on linux
This commit is contained in:
parent
9d50f20dba
commit
84be529f9e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user