[Scummvm-cvs-logs] SF.net SVN: scummvm: [22350] scummvm/trunk/base/options.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu May 4 17:00:01 CEST 2006


Revision: 22350
Author:   fingolfin
Date:     2006-05-04 16:59:12 -0700 (Thu, 04 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22350&view=rev

Log Message:
-----------
Fix s_appName computation

Modified Paths:
--------------
    scummvm/trunk/base/options.cpp
Modified: scummvm/trunk/base/options.cpp
===================================================================
--- scummvm/trunk/base/options.cpp	2006-05-04 23:57:49 UTC (rev 22349)
+++ scummvm/trunk/base/options.cpp	2006-05-04 23:59:12 UTC (rev 22350)
@@ -329,8 +329,8 @@
 	
 	// 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.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list