diff options
Diffstat (limited to 'src/lua-interface.cpp')
-rw-r--r-- | src/lua-interface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 5cb47fe..8273a05 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -871,9 +871,10 @@ virtual int startup() throw (GeneralException) { } #ifndef _WIN32 - ssize_t slashpos = argv[0].strrchr('/'); + String progname = argv[0]; + ssize_t slashpos = progname.strrchr('/'); if (slashpos >= 0) - searchpath = argv[0].extract(0, slashpos); + searchpath = progname.extract(0, slashpos); #endif /* Let's start parsing options */ |