From 00bd65269587416f4bc02b3011bf38e6456912dd Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Sat, 15 Jan 2022 22:30:02 -0500 Subject: [PATCH] Update Main.cpp --- Slang/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);