From 350072a6acac9c60d024d24493375fedeaf6e0c2 Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Tue, 24 May 2022 18:24:32 -0400 Subject: [PATCH] Change from c_str to std::string --- ZSharp/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZSharp/Main.cpp b/ZSharp/Main.cpp index 24b673d..eab0dd3 100644 --- a/ZSharp/Main.cpp +++ b/ZSharp/Main.cpp @@ -803,7 +803,7 @@ int main(int argc, char* argv[]) // Change the current working directory to that of the script int chErr = chdir(projectDirectory.c_str()); if (chErr < 0) - LogCriticalError("Failed to change directory to: \"" + projectDirectory.c_str() + "\", error num: " + chErr); + LogCriticalError("Failed to change directory to: \"" + projectDirectory + "\", error num: " + chErr); #if DEVELOPER_MESSAGES InterpreterLog("Changed directory to " + projectDirectory + "..."); #endif