From 84be529f9e436ef37cd630197d5717d10b1fc016 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 26 Aug 2018 18:45:34 +1000 Subject: [PATCH] C client: fix segfaulting with release build on linux --- src/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platform.c b/src/Platform.c index 907d2e92e..bc58d8f45 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -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); }