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());
SystemExec::to_s () const
{
#ifdef PLATFORM_WINDOWS
- return string (w_args ? w_args :: "");
+ return string (w_args ? w_args : "");
#else
stringstream out;
if (argp) {