From 51f773bd16451efb9e3c00cf72b20b493bcc8cc6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 6 Aug 2007 06:23:44 +0000 Subject: [PATCH] (svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index ae415748bd..ddd8ac99c3 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);