From e9c6289014661d06275e8d378dbcecfb16b15fa8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 3 May 2010 17:21:16 +0000 Subject: Use dehacked printf functions in Heretic code where appropriate. Subversion-branch: /branches/raven-branch Subversion-revision: 1932 --- src/heretic/ct_chat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/heretic/ct_chat.c') 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 -- cgit v1.2.3