diff options
author | rubidium <rubidium@openttd.org> | 2007-08-06 06:23:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-06 06:23:44 +0000 |
commit | f09ebb5ec262dc45d8bdb982d7ab95157aa804c9 (patch) | |
tree | 6c6502c3537f338fe22719a1160c7778f4ee9fd1 /src | |
parent | 8f719a7b2d8de79d8f456ef30ddde5f30100f18a (diff) | |
download | openttd-f09ebb5ec262dc45d8bdb982d7ab95157aa804c9.tar.xz |
(svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave.
Diffstat (limited to 'src')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index ae415748b..ddd8ac99c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1023,7 +1023,7 @@ static void DoAutosave() 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); |