]> git.stg.codes - stg.git/blobdiff - include/stg/user_property.h
scriptexecuter become a plain C library
[stg.git] / include / stg / user_property.h
index f0a6d18e85644c8f9d1a8f81919cef898b64f00d..ade21f4e8024e040dd2d6d13ba393e02e27e8731 100644 (file)
@@ -363,7 +363,7 @@ std::string filePath = scriptsDir + "/OnChange";
 if (access(filePath.c_str(), X_OK) == 0)
     {
     std::string execString("\"" + filePath + "\" \"" + login + "\" \"" + paramName + "\" \"" + oldValue + "\" \"" + newValue + "\" \"" + admin->GetLogin() + "\" \"" + admin->GetIPStr() + "\"");
-    ScriptExec(execString);
+    ScriptExec(execString.c_str());
     }
 else
     {