diff options
author | Darkvater <darkvater@openttd.org> | 2005-10-28 00:18:57 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-10-28 00:18:57 +0000 |
commit | 9bbf8ea9d056900500aa6f534091883ff2de6df0 (patch) | |
tree | d7615fc0bd640a584b37ec7040d91cb7e73dc823 /win32.c | |
parent | f56199311284fe48c88d4a55a1794c1f485b151e (diff) | |
download | openttd-9bbf8ea9d056900500aa6f534091883ff2de6df0.tar.xz |
(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
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |