summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c2
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) {