[Scummvm-cvs-logs] SF.net SVN: scummvm: [23763] scummvm/trunk/backends/fs/posix/posix-fs.cpp

vinterstum at users.sourceforge.net vinterstum at users.sourceforge.net
Sat Aug 26 21:16:20 CEST 2006


Revision: 23763
Author:   vinterstum
Date:     2006-08-26 12:16:15 -0700 (Sat, 26 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23763&view=rev

Log Message:
-----------
Don't strip the first character of the filename when FilesystemNode is instantiated with just the filename and no path.

Modified Paths:
--------------
    scummvm/trunk/backends/fs/posix/posix-fs.cpp
Modified: scummvm/trunk/backends/fs/posix/posix-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/posix/posix-fs.cpp	2006-08-26 18:37:49 UTC (rev 23762)
+++ scummvm/trunk/backends/fs/posix/posix-fs.cpp	2006-08-26 19:16:15 UTC (rev 23763)
@@ -65,7 +65,7 @@
 	const char *start = str.c_str();
 	const char *cur = start + str.size() - 2;
 
-	while (cur > start && *cur != '/') {
+	while (cur >= start && *cur != '/') {
 		--cur;
 	}
 


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