From 6ff9ccf9e7af23e54d460cddd0d60e4f1fd5e223 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 8 Jul 2004 20:45:33 +0000 Subject: [PATCH] - new Changed files: boomerang-path.patch -> 1.1 --- boomerang-path.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 boomerang-path.patch diff --git a/boomerang-path.patch b/boomerang-path.patch new file mode 100644 index 0000000..20fce2a --- /dev/null +++ b/boomerang-path.patch @@ -0,0 +1,25 @@ +diff -urN boomerang.org/boomerang.cpp boomerang/boomerang.cpp +--- boomerang.org/boomerang.cpp 2004-07-09 00:22:50.488941368 +0200 ++++ boomerang/boomerang.cpp 2004-07-09 00:37:52.418827184 +0200 +@@ -212,20 +212,7 @@ + int Boomerang::commandLine(int argc, const char **argv) + { + if (argc < 2) usage(); +- progPath = argv[0]; +- // Chop off after the last slash +- size_t j = progPath.rfind("/"); +- if (j == (size_t)-1) +- j = progPath.rfind("\\"); +- if (j != (size_t)-1) +- { +- // Do the chop; keep the trailing slash +- progPath = progPath.substr(0, j+1); +- } +- else { +- std::cerr << "? No slash in argv[0]!" << std::endl; +- return 1; +- } ++ progPath = BOOMDIR + "/"; + outputPath = "./"; + + // Parse switches on command line -- 2.44.0