From: slack Date: Wed, 1 Oct 2008 10:09:53 +0000 (+0200) Subject: fix typo in wendi.cc X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=dca03cde9491383dc5bfd02f0bfb7bb317b5eea9;p=wenboi.git fix typo in wendi.cc --- diff --git a/wendi/wendi.cc b/wendi/wendi.cc index 7d1d2eb..80a1191 100644 --- a/wendi/wendi.cc +++ b/wendi/wendi.cc @@ -369,8 +369,8 @@ int main(int argc, char **argv) std::sort(tmp.begin(), tmp.end()); std::for_each(tmp.begin(), tmp.end(), classify_block); - std::ofstream graph_stream((std::string(argv[2])+".dot").c_str()); - std::ofstream txt_stream((std::string(argv[2])+".txt").c_str()); + std::ofstream graph_stream((std::string(argv[1])+".dot").c_str()); + std::ofstream txt_stream((std::string(argv[1])+".txt").c_str()); GraphDisassemblyOutput graph(graph_stream); TextDisassemblyOutput text(txt_stream);