(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
authorDarkvater
Fri, 25 Mar 2005 20:20:23 +0000
changeset 1567 d48a5560adc4
parent 1566 6b37067ea47e
child 1568 3a54abe0019a
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
console_cmds.c
--- a/console_cmds.c	Fri Mar 25 20:15:00 2005 +0000
+++ b/console_cmds.c	Fri Mar 25 20:20:23 2005 +0000
@@ -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) {