and another typo in d442190b
authorRobin Gareus <robin@gareus.org>
Sat, 13 Feb 2016 23:10:41 +0000 (00:10 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 13 Feb 2016 23:10:41 +0000 (00:10 +0100)
libs/pbd/system_exec.cc

index 0d0ab9fc1abdda26b69072ddd790a573b39c1483..351e4ee066ae118f2f69e0e64de6cf2b90715f42 100644 (file)
@@ -215,7 +215,7 @@ 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 += '"';