Fixed handling of show -viewer
authorClifford Wolf <clifford@clifford.at>
Sun, 24 Mar 2013 14:21:57 +0000 (15:21 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 24 Mar 2013 14:21:57 +0000 (15:21 +0100)
kernel/show.cc

index 942f5b264997686eb5cfe0401078e0e01fa4c645..6ecdc99cbb72eec2b704d018ef6656325d90b6e7 100644 (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");