summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index c9dcee80b..fd20e3715 100644
--- a/unix.c
+++ b/unix.c
@@ -312,7 +312,9 @@ char *FiosBrowseTo(const FiosItem *item)
break;
case FIOS_TYPE_DIRECT:
- sprintf(path, "%s\\", item->name);
+ sprintf(path, "%s/", item->name);
+ s = strrchr(path, '/');
+ if (s[1] == '\0') s[0] = '\0'; // strip trailing slash
break;
case FIOS_TYPE_FILE: