summaryrefslogtreecommitdiff
path: root/src/doom/hu_stuff.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-30 18:21:42 -0400
committerSimon Howard2014-03-30 18:21:42 -0400
commit4465be140a27e47aa8bed15be4e58064297c7d94 (patch)
treef27954337910f277d7883feab70e6b2a1fc421b6 /src/doom/hu_stuff.c
parente56c9c948df1ad0e2ff2b64d8593caefbf98fd11 (diff)
downloadchocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.tar.gz
chocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.tar.bz2
chocolate-doom-4465be140a27e47aa8bed15be4e58064297c7d94.zip
doom: Eliminate use of sprintf().
Use snprintf() or other functions in place of sprintf(). This is part of fixing #371.
Diffstat (limited to 'src/doom/hu_stuff.c')
-rw-r--r--src/doom/hu_stuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doom/hu_stuff.c b/src/doom/hu_stuff.c
index 1dda6e8a..8ea3912e 100644
--- a/src/doom/hu_stuff.c
+++ b/src/doom/hu_stuff.c
@@ -627,7 +627,7 @@ boolean HU_Responder(event_t *ev)
// static unsigned char buf[20]; // DEBUG
HU_queueChatChar(c);
- // sprintf(buf, "KEY: %d => %d", ev->data1, c);
+ // snprintf(buf, sizeof(buf), "KEY: %d => %d", ev->data1, c);
// plr->message = buf;
}
if (c == KEY_ENTER)