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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Sep 22 22:51:34 CEST 2007


Revision: 29030
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29030&view=rev
Author:   lordhoto
Date:     2007-09-22 13:51:34 -0700 (Sat, 22 Sep 2007)

Log Message:
-----------
oops.

Modified Paths:
--------------
    scummvm/trunk/backends/fs/amigaos4/amigaos4-fs.cpp

Modified: scummvm/trunk/backends/fs/amigaos4/amigaos4-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/amigaos4/amigaos4-fs.cpp	2007-09-22 20:47:41 UTC (rev 29029)
+++ scummvm/trunk/backends/fs/amigaos4/amigaos4-fs.cpp	2007-09-22 20:51:34 UTC (rev 29030)
@@ -116,16 +116,16 @@
  * @return Pointer to the first char of the last component inside str.
  */
 const char *lastPathComponent(const Common::String &str) {
-	int offset = p.size();
-	const char *str = p.c_str();
+	int offset = str.size();
+	const char *p = str.c_str();
 
-	while (offset > 0 && (str[offset-1] == '/' || str[offset-1] == ':'))
+	while (offset > 0 && (p[offset-1] == '/' || p[offset-1] == ':'))
 		offset--;
 
-	while (offset > 0 && (str[offset-1] != '/' && str[offset-1] != ':'))
+	while (offset > 0 && (p[offset-1] != '/' && p[offset-1] != ':'))
 		offset--;
 
-	return str.c_str() + offset;
+	return p + offset;
 }
 
 AmigaOSFilesystemNode::AmigaOSFilesystemNode() {


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