(svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash

This commit is contained in:
Darkvater
2005-10-28 00:18:57 +00:00
parent f561993112
commit 9bbf8ea9d0
3 changed files with 8 additions and 1 deletions

View File

@@ -919,6 +919,9 @@ 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: