aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorOystein Eftevaag2006-08-26 19:16:15 +0000
committerOystein Eftevaag2006-08-26 19:16:15 +0000
commit69daf49a730b08fd5b9627a9ca803123426dfa69 (patch)
tree72414fb1f688ed07a5acdc104e2d066c72cc70cd /backends/fs
parenta698cdfcfc9edab963d66415e8ee8f4b28081914 (diff)
downloadscummvm-rg350-69daf49a730b08fd5b9627a9ca803123426dfa69.tar.gz
scummvm-rg350-69daf49a730b08fd5b9627a9ca803123426dfa69.tar.bz2
scummvm-rg350-69daf49a730b08fd5b9627a9ca803123426dfa69.zip
Don't strip the first character of the filename when FilesystemNode is instantiated with just the filename and no path.
svn-id: r23763
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/posix/posix-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index 6edcb8a84d..14ed0d39b9 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -65,7 +65,7 @@ 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;
}