# HG changeset patch # User Darkvater # Date 1111782023 0 # Node ID 13e4bb100b9583b8bfd0231d7a9932fb23d6991a # Parent a19cdf941777e60c7c781ca475ba41572d1c6998 (svn r2071) - Feature: [ 1168743 ] save command for console: "save " to save a game (pkirchhofer) diff --git a/console_cmds.c b/console_cmds.c --- 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) {