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;