summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-04-05 21:09:36 +0000
committerdarkvater <darkvater@openttd.org>2005-04-05 21:09:36 +0000
commit50003f4ed947a2b19d05d89fd5f016b98481415c (patch)
tree6908a99af003607cae0beeaf6445aa24bb9b7f73
parent648fa7c97d817e218722f2b54db0a6e49c72ddc9 (diff)
downloadopenttd-50003f4ed947a2b19d05d89fd5f016b98481415c.tar.xz
(svn r2153) - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only (glx)
-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;