From 4e6169db1e47d9e398cd1e0a6a1e6da43e49a226 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 25 Mar 2005 20:20:23 +0000 Subject: (svn r2071) - Feature: [ 1168743 ] save command for console: "save " to save a game (pkirchhofer) --- console_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2