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
commitdfe6c34bf1e872d76c4c3d9468684117e52e0020 (patch)
tree6908a99af003607cae0beeaf6445aa24bb9b7f73
parent22d36985cd7e1e16c008bfaecc7d98fde6e09d5d (diff)
downloadopenttd-dfe6c34bf1e872d76c4c3d9468684117e52e0020.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;