summaryrefslogtreecommitdiff
path: root/src/strife/am_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/am_map.c')
-rw-r--r--src/strife/am_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strife/am_map.c b/src/strife/am_map.c
index e942e3ac..05f8a519 100644
--- a/src/strife/am_map.c
+++ b/src/strife/am_map.c
@@ -670,7 +670,8 @@ AM_Responder
}
else if (key == key_map_mark)
{
- sprintf(buffer, "%s %d", DEH_String(AMSTR_MARKEDSPOT), markpointnum);
+ snprintf(buffer, sizeof(buffer),
+ "%s %d", DEH_String(AMSTR_MARKEDSPOT), markpointnum);
plr->message = buffer;
AM_addMark();
}