From: Clifford Wolf Date: Sun, 8 Feb 2015 22:29:54 +0000 (+0100) Subject: Fixed bug in "show -format .." X-Git-Tag: yosys-0.5~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07afb143187aa6e74bee79c4d561e0435ff7605f;p=yosys.git Fixed bug in "show -format .." --- diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 2779cabf9..63da29b94 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -794,7 +794,7 @@ struct ShowPass : public Pass { log_cmd_error("Nothing there to show.\n"); if (format != "dot" && !format.empty()) { - std::string cmd = stringf("dot -T%s -o '%s.new' '%s' && mv '%s.new' '%s'", format.c_str(), out_file.c_str(), dot_file.c_str(), dot_file.c_str(), dot_file.c_str()); + std::string cmd = stringf("dot -T%s -o '%s.new' '%s' && mv '%s.new' '%s'", format.c_str(), out_file.c_str(), dot_file.c_str(), out_file.c_str(), out_file.c_str()); log("Exec: %s\n", cmd.c_str()); if (run_command(cmd) != 0) log_cmd_error("Shell command failed!\n");