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
commit67d2ada0207a295b200c97db90a413283eb013d3 (patch)
treeeb2963b6fe692701305af0cdad71794fd4fa03fb
parentb909a1f775afaffb7a3fc7898ea09d70de313ea0 (diff)
downloadopenttd-67d2ada0207a295b200c97db90a413283eb013d3.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) {