From 2ea8fd11ec5da77ba66b24c0c2cbee892e803904 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 19:08:27 -0400 Subject: strife: Eliminate use of sprintf(). Use snprintf() in place of sprintf(). This is part of fixing #371. --- src/strife/am_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/strife/am_map.c') 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(); } -- cgit v1.2.3