diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 8f9fbe3c..78f3a9d0 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -408,11 +408,10 @@ void screen::execCommand(const std::string &cmd) const { if ((pid = fork()) == 0) { extern char **environ; - string c = "exec " + cmd; char *const argv[] = { "sh", "-c", - const_cast(c.c_str()), + const_cast(cmd.c_str()), 0 }; // make the command run on the correct screen