diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index 0d0ab9fc1a..351e4ee066 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -215,7 +215,7 @@ SystemExec::SystemExec (std::string command, const std::map s for (int i = 1; argp[i]; ++i) { std::string tmp (argp[i]); while (tmp.find("\"") != std::string::npos) - tmp.replace(s.find("\""), 1, "\\\""); + tmp.replace(tmp.find("\""), 1, "\\\""); wa += " \""; wa += tmp; wa += '"';