diff options
author | Darkvater <darkvater@openttd.org> | 2005-03-25 20:20:23 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-03-25 20:20:23 +0000 |
commit | 67d2ada0207a295b200c97db90a413283eb013d3 (patch) | |
tree | eb2963b6fe692701305af0cdad71794fd4fa03fb | |
parent | b909a1f775afaffb7a3fc7898ea09d70de313ea0 (diff) | |
download | openttd-67d2ada0207a295b200c97db90a413283eb013d3.tar.xz |
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
-rw-r--r-- | console_cmds.c | 2 |
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) { |