changeset 1567:13e4bb100b95 draft

(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
author Darkvater <Darkvater@openttd.org>
date Fri, 25 Mar 2005 20:20:23 +0000
parents a19cdf941777
children eee5b823b59e
files console_cmds.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -150,7 +150,7 @@
 {
 	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) {