more meta-data placeholders for post-export command
[ardour.git] / 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 += '"';