diff options
author | Simon Howard | 2014-03-30 18:21:42 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-30 18:21:42 -0400 |
commit | 4465be140a27e47aa8bed15be4e58064297c7d94 (patch) | |
tree | f27954337910f277d7883feab70e6b2a1fc421b6 /src/doom/hu_stuff.c | |
parent | e56c9c948df1ad0e2ff2b64d8593caefbf98fd11 (diff) | |
download | chocolate-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.c | 2 |
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) |