summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index c633e63e8..8a2120d90 100644
--- a/win32.c
+++ b/win32.c
@@ -1820,7 +1820,7 @@ char *FiosBrowseTo(const FiosItem *item)
case FIOS_TYPE_DIR:
s = strchr(item->name, '\\');
if (s != NULL) *s = '\0';
- strcat(path, "\\");
+ if (path[3]!= '\0' ) strcat(path, "\\");
strcat(path, item->name);
break;