use right-side buttons to goto_nth_marker()
[ardour.git] / libs / pbd / system_exec.cc
index 6bedc44257c935d1fe80a8dd15e7b447649f96ac..351e4ee066ae118f2f69e0e64de6cf2b90715f42 100644 (file)
@@ -215,9 +215,9 @@ SystemExec::SystemExec (std::string command, const std::map<char, std::string> 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) {