summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-03-25 20:20:23 +0000
committerDarkvater <Darkvater@openttd.org>2005-03-25 20:20:23 +0000
commit4e6169db1e47d9e398cd1e0a6a1e6da43e49a226 (patch)
treeeb2963b6fe692701305af0cdad71794fd4fa03fb
parented26914fa7d09db066955e622bc4102fd97a41c6 (diff)
downloadopenttd-4e6169db1e47d9e398cd1e0a6a1e6da43e49a226.tar.xz
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 6cd903ec4..e3184892c 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -150,7 +150,7 @@ static void SaveMap(const char *filename)
{
char buf[200];
- snprintf(buf, sizeof(buf), "%s%s%s.sav", _path.save_dir, PATHSEP, filename);
+ snprintf(buf, lengthof(buf), "%s%s%s.sav", _path.save_dir, PATHSEP, filename);
IConsolePrint(_iconsole_color_default, "Saving map...");
if (SaveOrLoad(buf, SL_SAVE) != SL_OK) {