diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index b082ff908..a061cf63c 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -335,7 +335,7 @@ int main(int argc, char**argv) if ((argc == 2 && strcmp(argv[1], "--cc-handle-crash") == 0) || !is_debugger_attached()) { int s[5] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS, SIGABRT }; - cc_install_handlers(argc, argv, 5, s, std::string(cfgMgr.getLogPath().string() + "/crash.log").c_str(), NULL); + cc_install_handlers(argc, argv, 5, s, (cfgMgr.getLogPath() / "crash.log").string().c_str(), NULL); std::cout << "Installing crash catcher" << std::endl; } else