aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorJohannes Schickel2007-09-22 20:51:34 +0000
committerJohannes Schickel2007-09-22 20:51:34 +0000
commitb93e906285c1bba1ee70aebe23cd225b28cfeeb5 (patch)
tree98387cec98c77924a10c7a864c12120c5996a250 /backends/fs
parent2115e5d181697da99fd962a16690f44678cbfc2c (diff)
downloadscummvm-rg350-b93e906285c1bba1ee70aebe23cd225b28cfeeb5.tar.gz
scummvm-rg350-b93e906285c1bba1ee70aebe23cd225b28cfeeb5.tar.bz2
scummvm-rg350-b93e906285c1bba1ee70aebe23cd225b28cfeeb5.zip
oops.
svn-id: r29030
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/amigaos4/amigaos4-fs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/fs/amigaos4/amigaos4-fs.cpp b/backends/fs/amigaos4/amigaos4-fs.cpp
index b30b5c6eeb..c3a98e9b8a 100644
--- a/backends/fs/amigaos4/amigaos4-fs.cpp
+++ b/backends/fs/amigaos4/amigaos4-fs.cpp
@@ -116,16 +116,16 @@ public:
* @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() {