diff options
author | Simon Howard | 2014-03-30 19:08:27 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-30 19:08:27 -0400 |
commit | 2ea8fd11ec5da77ba66b24c0c2cbee892e803904 (patch) | |
tree | eed48a3b6ce007c54671099c33a041a081609681 /src/strife/am_map.c | |
parent | 01ae851bf998330a9ca95467e238c507aa55cae1 (diff) | |
download | chocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.tar.gz chocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.tar.bz2 chocolate-doom-2ea8fd11ec5da77ba66b24c0c2cbee892e803904.zip |
strife: Eliminate use of sprintf().
Use snprintf() in place of sprintf(). This is part of fixing #371.
Diffstat (limited to 'src/strife/am_map.c')
-rw-r--r-- | src/strife/am_map.c | 3 |
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(); } |