]> git.pld-linux.org Git - packages/boomerang.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 8 Jul 2004 20:45:33 +0000 (20:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    boomerang-path.patch -> 1.1

boomerang-path.patch [new file with mode: 0644]

diff --git a/boomerang-path.patch b/boomerang-path.patch
new file mode 100644 (file)
index 0000000..20fce2a
--- /dev/null
@@ -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
This page took 0.082317 seconds and 4 git commands to generate.