diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2020-07-29 01:31:57 +0200 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-07-29 01:31:57 +0200 |
commit | a89741c628b7d2575ebeb26b58d7ee6b5d1025f7 (patch) | |
tree | 10c1ed6eb74e2be386f8c54742d0b17a80368303 /src/frontend/qt_sdl/Platform.cpp | |
parent | f56aa60eb693ed41212960db60e01ceecf5d64c5 (diff) |
fix unterminated string + remove some JIT logging
Diffstat (limited to 'src/frontend/qt_sdl/Platform.cpp')
-rw-r--r-- | src/frontend/qt_sdl/Platform.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index 43f358f..05a0c2d 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -111,6 +111,7 @@ void Init(int argc, char** argv) confdir = config.absolutePath() + "/melonDS/"; EmuDirectory = new char[confdir.length() + 1]; memcpy(EmuDirectory, confdir.toUtf8().data(), confdir.length()); + EmuDirectory[confdir.length()] = '\0'; #endif } |