1 diff -urN boomerang.org/boomerang.cpp boomerang/boomerang.cpp
2 --- boomerang.org/boomerang.cpp 2004-07-09 00:22:50.488941368 +0200
3 +++ boomerang/boomerang.cpp 2004-07-09 00:37:52.418827184 +0200
5 int Boomerang::commandLine(int argc, const char **argv)
9 - // Chop off after the last slash
10 - size_t j = progPath.rfind("/");
11 - if (j == (size_t)-1)
12 - j = progPath.rfind("\\");
13 - if (j != (size_t)-1)
15 - // Do the chop; keep the trailing slash
16 - progPath = progPath.substr(0, j+1);
19 - std::cerr << "? No slash in argv[0]!" << std::endl;
22 + progPath = BOOMDIR + "/";
25 // Parse switches on command line