Mercurial > hg > openttd
changeset 7414:2496ac7d0086 draft
(svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 06 Aug 2007 06:23:44 +0000 |
parents | 571c87eed06c |
children | fd7e14cd690d |
files | src/openttd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1023,7 +1023,7 @@ SetDParam(0, _local_player); SetDParam(1, _date); GetString(buf, STR_4004, lastof(buf)); - ttd_strlcpy(buf, ".sav", sizeof(buf)); + ttd_strlcat(buf, ".sav", lengthof(buf)); } else { /* generate a savegame name and number according to _patches.max_num_autosaves */ snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);