summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-26 18:04:42 +0000
committertron <tron@openttd.org>2005-03-26 18:04:42 +0000
commit5acfb5ec6f66787105057e2030636f652ffdfc48 (patch)
tree5d2d21a67ff95ab7c9fbb24a23a1debe9e562b77
parent92f6fe9f6b113a78de8f10f66b284e0391cc09c8 (diff)
downloadopenttd-5acfb5ec6f66787105057e2030636f652ffdfc48.tar.xz
(svn r2076) Set the name for the parent directory to ".."
-rw-r--r--os2.c1
-rw-r--r--unix.c1
-rw-r--r--win32.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/os2.c b/os2.c
index 4c4b93325..449a66f80 100644
--- a/os2.c
+++ b/os2.c
@@ -104,6 +104,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
fios = FiosAlloc();
fios->type = FIOS_TYPE_PARENT;
fios->mtime = 0;
+ strcpy(fios->name, "..");
strcpy(fios->title, ".. (Parent directory)");
}
diff --git a/unix.c b/unix.c
index 0da9fa5da..5ab036852 100644
--- a/unix.c
+++ b/unix.c
@@ -90,6 +90,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
fios = FiosAlloc();
fios->type = FIOS_TYPE_PARENT;
fios->mtime = 0;
+ strcpy(fios->name, "..");
strcpy(fios->title, ".. (Parent directory)");
}
diff --git a/win32.c b/win32.c
index fefbaaa6d..97d87255f 100644
--- a/win32.c
+++ b/win32.c
@@ -1597,6 +1597,7 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
fios = FiosAlloc();
fios->type = FIOS_TYPE_PARENT;
fios->mtime = 0;
+ strcpy(fios->name, "..");
strcpy(fios->title, ".. (Parent directory)");
}