fix typo in wendi.cc
authorslack <slack@Blackbird.(none)>
Wed, 1 Oct 2008 10:09:53 +0000 (12:09 +0200)
committerslack <slack@Blackbird.(none)>
Wed, 1 Oct 2008 10:09:53 +0000 (12:09 +0200)
wendi/wendi.cc

index 7d1d2eb3050780d09b9d58f1fff5a9306c4727e9..80a11915a33ac77aae808de4fbf8a85084c36130 100644 (file)
@@ -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);