From c17e0e68c4cd6641066d2ca79cbd41ae77a57c9c Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 30 Sep 2017 00:28:12 +1000 Subject: [PATCH] I'll get this chat system right eventually --- src/chat_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat_system.c b/src/chat_system.c index d852836..d0504c7 100644 --- a/src/chat_system.c +++ b/src/chat_system.c @@ -262,7 +262,7 @@ void chat_system(struct user_record *user) { return; } - strncat(partmessage, readbuffer, 1024); + strncat(partmessage, readbuffer, len); strcpy(readbuffer, partmessage); y = 0;