diff --git a/Slang/Main.cpp b/Slang/Main.cpp index 1bcee9b..5ff092c 100644 --- a/Slang/Main.cpp +++ b/Slang/Main.cpp @@ -672,7 +672,8 @@ int main(int argc, char* argv[]) std::wstring wide = converter.from_bytes(projectDirectory); #if defined(__unix__) - chdir(projectDirectory.c_str()); + const char[] pC = projectDirectory.c_str(); + chdir(pC); #elif defined(_MSC_VER) LPCWSTR s = wide.c_str(); SetCurrentDirectory(s);