summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os2.c b/os2.c
index 821ebf206..6aa5a61ca 100644
--- a/os2.c
+++ b/os2.c
@@ -356,6 +356,8 @@ char *FiosBrowseTo(const FiosItem *item)
case FIOS_TYPE_DIRECT:
sprintf(path, "%s\\", item->name);
+ s = strrchr(path, '\\');
+ if (s[1] == '\0') s[0] = '\0'; // strip trailing slash
break;
case FIOS_TYPE_FILE: