1
0
Fork 0

(svn r26554) -Fix(r26489): Use last address of the destination buffer.

release/1.5
alberth 2014-05-03 15:45:54 +00:00
parent 60444759b0
commit db57e818a7
1 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,7 @@ void FiosMakeSavegameName(char *buf, const char *name, const char *last)
{ {
const char *extension = (_game_mode == GM_EDITOR) ? ".scn" : ".sav"; 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] = '.'; ext[0] = '.';
strecpy(ext + 1, GetCurrentScreenshotExtension(), lastof(ext)); 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. * Delete a file.
* @param name Filename to delete. * @param name Filename to delete.
* @return Whether the file deletion was successful.
*/ */
bool FiosDelete(const char *name) bool FiosDelete(const char *name)
{ {