diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/options.cpp b/base/options.cpp index 6988ee54b0..ce6a3e3510 100644 --- a/base/options.cpp +++ b/base/options.cpp @@ -329,8 +329,8 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar // argv[0] contains the name of the executable. if (argv && argv[0]) { - s = strchr(argv[0], '/'); - s_appName = s ? s : argv[0]; + s = strrchr(argv[0], '/'); + s_appName = s ? (s+1) : argv[0]; } // We store all command line settings into a string map. |