From 69daf49a730b08fd5b9627a9ca803123426dfa69 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Sat, 26 Aug 2006 19:16:15 +0000 Subject: Don't strip the first character of the filename when FilesystemNode is instantiated with just the filename and no path. svn-id: r23763 --- backends/fs/posix/posix-fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/fs') 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; } -- cgit v1.2.3