From e20d896a72be2b222672f7fe397aeca0e27cca05 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 4 May 2006 23:59:12 +0000 Subject: Fix s_appName computation svn-id: r22350 --- base/options.cpp | 4 ++-- 1 file 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. -- cgit v1.2.3