Fixed handling of show -viewer

This commit is contained in:
Clifford Wolf 2013-03-24 15:21:57 +01:00
parent 2887e4305f
commit e1a80b356e

View file

@ -474,7 +474,7 @@ struct ShowPass : public Pass {
log_cmd_error("Shell command failed!\n");
if (!viewer_exe.empty()) {
cmd = stringf("%s '%s' &", viewer_exe.c_str(), dot_file.c_str());
cmd = stringf("%s '%s' &", viewer_exe.c_str(), ps_file.c_str());
log("Exec: %s\n", cmd.c_str());
if (system(cmd.c_str()) != 0)
log_cmd_error("Shell command failed!\n");