diff options
author | alberth <alberth@openttd.org> | 2014-05-03 15:45:54 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2014-05-03 15:45:54 +0000 |
commit | db57e818a79882eb52da275cbafdb1ec11d5a853 (patch) | |
tree | 613d040d9ca3e58d1b0760de31c7ccd443e368e5 /src | |
parent | 60444759b06876edcd202af3badfba51ed1e5e25 (diff) | |
download | openttd-db57e818a79882eb52da275cbafdb1ec11d5a853.tar.xz |
(svn r26554) -Fix(r26489): Use last address of the destination buffer.
Diffstat (limited to 'src')
-rw-r--r-- | src/fios.cpp | 5 |
1 files 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) { |