diff options
author | rubidium <rubidium@openttd.org> | 2014-04-23 21:23:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-23 21:23:21 +0000 |
commit | 21f991e2353d99064555acf7996b51c46bbd44a5 (patch) | |
tree | 98bcaf86aac6edddf70877a13a71b8337049254d /src/fios.h | |
parent | 160ad31028c6d089ee9bc69581c9a25da00912aa (diff) | |
download | openttd-21f991e2353d99064555acf7996b51c46bbd44a5.tar.xz |
(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
Diffstat (limited to 'src/fios.h')
-rw-r--r-- | src/fios.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fios.h b/src/fios.h index 43a018f26..b26fe0092 100644 --- a/src/fios.h +++ b/src/fios.h @@ -170,8 +170,8 @@ const char *FiosBrowseTo(const FiosItem *item); StringID FiosGetDescText(const char **path, uint64 *total_free); bool FiosDelete(const char *name); -void FiosMakeHeightmapName(char *buf, const char *name, size_t size); -void FiosMakeSavegameName(char *buf, const char *name, size_t size); +void FiosMakeHeightmapName(char *buf, const char *name, const char *last); +void FiosMakeSavegameName(char *buf, const char *name, const char *last); FiosType FiosGetSavegameListCallback(SaveLoadDialogMode mode, const char *file, const char *ext, char *title, const char *last); |