summaryrefslogtreecommitdiff
path: root/src/heretic/ct_chat.c
diff options
context:
space:
mode:
authorSimon Howard2010-05-03 17:21:16 +0000
committerSimon Howard2010-05-03 17:21:16 +0000
commite9c6289014661d06275e8d378dbcecfb16b15fa8 (patch)
tree1fbcf8435b48e6887f834d9c667b3bbf67b75fb5 /src/heretic/ct_chat.c
parent4767ddccafca1a1c50bc097284df1328d478882a (diff)
downloadchocolate-doom-e9c6289014661d06275e8d378dbcecfb16b15fa8.tar.gz
chocolate-doom-e9c6289014661d06275e8d378dbcecfb16b15fa8.tar.bz2
chocolate-doom-e9c6289014661d06275e8d378dbcecfb16b15fa8.zip
Use dehacked printf functions in Heretic code where appropriate.
Subversion-branch: /branches/raven-branch Subversion-revision: 1932
Diffstat (limited to 'src/heretic/ct_chat.c')
-rw-r--r--src/heretic/ct_chat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/heretic/ct_chat.c b/src/heretic/ct_chat.c
index 958d1fff..8059b74d 100644
--- a/src/heretic/ct_chat.c
+++ b/src/heretic/ct_chat.c
@@ -301,7 +301,9 @@ void CT_Ticker(void)
CT_AddChar(i, 0); // set the end of message character
if (numplayers > 2)
{
- strcpy(plr_lastmsg[i], DEH_String(CT_FromPlrText[i]));
+ strncpy(plr_lastmsg[i], DEH_String(CT_FromPlrText[i]),
+ MESSAGESIZE + 9);
+ plr_lastmsg[i][MESSAGESIZE + 8] = '\0';
strcat(plr_lastmsg[i], chat_msg[i]);
}
else