diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-07-26 00:11:13 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-07-26 00:11:13 +0200 |
commit | 98ec7bdaf9047a16a27048202bcebf3fc1ef97d2 (patch) | |
tree | 09c2861d9179fb8df15b693e9635dec821bf6515 /src/core/FileMgr.cpp | |
parent | fix windows build, don't use crossplatform (diff) | |
download | re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.gz re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.bz2 re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.lz re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.xz re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.zst re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.zip |
Diffstat (limited to 'src/core/FileMgr.cpp')
-rw-r--r-- | src/core/FileMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileMgr.cpp b/src/core/FileMgr.cpp index 8dbc6894..618874fa 100644 --- a/src/core/FileMgr.cpp +++ b/src/core/FileMgr.cpp @@ -37,7 +37,7 @@ static myFILE myfiles[NUMFILES]; // Case-insensitivity on linux (from https://github.com/OneSadCookie/fcaseopen) void mychdir(char const *path) { - char *r = (char*)alloca(strlen(path) + 2); + char *r = (char*)alloca(strlen(path) + 4); if (casepath(path, r)) { chdir(r); @@ -88,7 +88,7 @@ found: // Be case-insensitive on linux (from https://github.com/OneSadCookie/fcaseopen/) #if !defined(_WIN32) if (!myfiles[fd].file) { - char *r = (char*)alloca(strlen(newPath) + 2); + char *r = (char*)alloca(strlen(newPath) + 4); if (casepath(newPath, r)) { myfiles[fd].file = fopen(r, realmode); |