aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ds/arm9/source/zipreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/ds/arm9/source/zipreader.cpp b/backends/platform/ds/arm9/source/zipreader.cpp
index c74cb87c78..92dd170c2a 100644
--- a/backends/platform/ds/arm9/source/zipreader.cpp
+++ b/backends/platform/ds/arm9/source/zipreader.cpp
@@ -215,6 +215,9 @@ void ZipFile::changeToRoot() {
void ZipFile::changeDirectory(char* dir) {
// consolePrintf("Current dir now '%s'\n", dir);
strcpy(_directory, dir);
+ size_t l = strlen(_directory);
+ if (l && (_directory[l-1] == '/' ))
+ _directory[l-1] = '\0';
}
ZipFile::~ZipFile() {