From 70be35f319ecf29f81332ef124475b8ed748d5e4 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 12 Mar 2005 09:24:27 +0000 Subject: [PATCH] (svn r1999) r1990 broke savegame deletion, fix that [1161729] --- os2.c | 2 +- unix.c | 2 +- win32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os2.c b/os2.c index bbe26497fe..eb86bdd44f 100644 --- a/os2.c +++ b/os2.c @@ -403,7 +403,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s\\%s", _fios_path, name); unlink(path); } diff --git a/unix.c b/unix.c index 8c39ceb488..529c57d9e6 100644 --- a/unix.c +++ b/unix.c @@ -334,7 +334,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s/%s", _fios_path, name); unlink(path); } diff --git a/win32.c b/win32.c index e439113ece..9bd3a9cab3 100644 --- a/win32.c +++ b/win32.c @@ -1858,7 +1858,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s\\%s", _fios_path, name); DeleteFile(path); }