aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-05-04 23:59:12 +0000
committerMax Horn2006-05-04 23:59:12 +0000
commite20d896a72be2b222672f7fe397aeca0e27cca05 (patch)
treedbfb82ae71c5e3ed84b2c995061168d698c65116 /base
parentbe09fc77dc866f3191f752531a60ba985cc37229 (diff)
downloadscummvm-rg350-e20d896a72be2b222672f7fe397aeca0e27cca05.tar.gz
scummvm-rg350-e20d896a72be2b222672f7fe397aeca0e27cca05.tar.bz2
scummvm-rg350-e20d896a72be2b222672f7fe397aeca0e27cca05.zip
Fix s_appName computation
svn-id: r22350
Diffstat (limited to 'base')
-rw-r--r--base/options.cpp4
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.