From a89741c628b7d2575ebeb26b58d7ee6b5d1025f7 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Wed, 29 Jul 2020 01:31:57 +0200 Subject: fix unterminated string + remove some JIT logging --- src/frontend/qt_sdl/Platform.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/frontend/qt_sdl/Platform.cpp') 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 } -- cgit v1.2.3