From db57e818a79882eb52da275cbafdb1ec11d5a853 Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 3 May 2014 15:45:54 +0000 Subject: (svn r26554) -Fix(r26489): Use last address of the destination buffer. --- src/fios.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fios.cpp b/src/fios.cpp index 43d781b5d..00ed5a484 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -184,7 +184,7 @@ void FiosMakeSavegameName(char *buf, const char *name, const char *last) { const char *extension = (_game_mode == GM_EDITOR) ? ".scn" : ".sav"; - FiosMakeFilename(buf, _fios_path, name, extension, _fios_path_last); + FiosMakeFilename(buf, _fios_path, name, extension, last); } /** @@ -199,12 +199,13 @@ void FiosMakeHeightmapName(char *buf, const char *name, const char *last) ext[0] = '.'; strecpy(ext + 1, GetCurrentScreenshotExtension(), lastof(ext)); - FiosMakeFilename(buf, _fios_path, name, ext, _fios_path_last); + FiosMakeFilename(buf, _fios_path, name, ext, last); } /** * Delete a file. * @param name Filename to delete. + * @return Whether the file deletion was successful. */ bool FiosDelete(const char *name) { -- cgit v1.2.3-70-g09d2