and another typo in d442190b

This commit is contained in:
Robin Gareus 2016-02-14 00:10:41 +01:00
parent 09167d3e59
commit 820bd0fe51

View 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 += '"';