X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fpbd%2Fsystem_exec.cc;h=351e4ee066ae118f2f69e0e64de6cf2b90715f42;hb=f290be21ee896912553efbe5ec7f75d1d027ac13;hp=6bedc44257c935d1fe80a8dd15e7b447649f96ac;hpb=d442190b8a01e0f941080a75fa31e02bf39a202e;p=ardour.git diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index 6bedc44257..351e4ee066 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -215,9 +215,9 @@ 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 += tmp; wa += '"'; } w_args = strdup(wa.c_str()); @@ -339,7 +339,7 @@ string SystemExec::to_s () const { #ifdef PLATFORM_WINDOWS - return string (w_args ? w_args :: ""); + return string (w_args ? w_args : ""); #else stringstream out; if (argp) {