summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-11 16:32:32 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-11 16:32:32 +1000
commita8aabc1f7078fe0e0f9920efb287ef83d99ca4dd (patch)
tree674700c6d8662522ed68f156e75be7cdce70aad2
parent623837e4102ded45cceefa5ce8d4179ea932ef19 (diff)
Another attempt to fix chat
-rw-r--r--src/chat_system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chat_system.c b/src/chat_system.c
index 5c21592..a29b656 100644
--- a/src/chat_system.c
+++ b/src/chat_system.c
@@ -431,8 +431,8 @@ void chat_system(struct user_record *user) {
free(screenbuffer);
return;
}
-
- strlcat(partmessage, readbuffer, len);
+ readbuffer[len] = '\0';
+ strlcat(partmessage, readbuffer, sizeof(partmessage));
strlcpy(readbuffer, partmessage, sizeof(readbuffer));
y = 0;