diff options
author | Johannes Schickel | 2006-08-28 13:34:15 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-08-28 13:34:15 +0000 |
commit | ac45e290f7550da70039c1d2051d7e6ed31cc7b7 (patch) | |
tree | f42e94c824f33606e4bfa215c66d849c10167cd6 /backends/fs/psp | |
parent | d9cb390a7b33a80a39b1295a5920e3cd70c408b0 (diff) | |
download | scummvm-rg350-ac45e290f7550da70039c1d2051d7e6ed31cc7b7.tar.gz scummvm-rg350-ac45e290f7550da70039c1d2051d7e6ed31cc7b7.tar.bz2 scummvm-rg350-ac45e290f7550da70039c1d2051d7e6ed31cc7b7.zip |
Fixing other FS backends to use the bug fixed version of the POSIX lastPathComponent too (also lets the Windows FS use the POSIX version of lastPathComponent too, since it's nicer than the fix I made)
svn-id: r23796
Diffstat (limited to 'backends/fs/psp')
-rw-r--r-- | backends/fs/psp/psp_fs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/fs/psp/psp_fs.cpp b/backends/fs/psp/psp_fs.cpp index 0ad98729a9..0f16ac8395 100644 --- a/backends/fs/psp/psp_fs.cpp +++ b/backends/fs/psp/psp_fs.cpp @@ -133,11 +133,11 @@ bool PSPFilesystemNode::listDir(AbstractFSList &myList, ListMode mode) const { } } -const char *lastPathComponent(const Common::String &str) { +static const char *lastPathComponent(const Common::String &str) { const char *start = str.c_str(); const char *cur = start + str.size() - 2; - while (cur > start && *cur != '/') { + while (cur >= start && *cur != '/') { --cur; } |