diff options
Diffstat (limited to 'backends/fs/dc/dc-fs.cpp')
-rw-r--r-- | backends/fs/dc/dc-fs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/fs/dc/dc-fs.cpp b/backends/fs/dc/dc-fs.cpp index db097301ce..7294211e68 100644 --- a/backends/fs/dc/dc-fs.cpp +++ b/backends/fs/dc/dc-fs.cpp @@ -59,13 +59,14 @@ 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; } return cur + 1; } + AbstractFilesystemNode *AbstractFilesystemNode::getCurrentDirectory() { // Since there is no way to _set_ the current directory, // it will always be /... |