summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-11 16:25:42 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-11 16:25:42 +1000
commit623837e4102ded45cceefa5ce8d4179ea932ef19 (patch)
treefcb2524acfaf9ce22ecc90a21a36e1251f5bbf05
parent80738d5d2ae144fb2ad822959432cd991039a67c (diff)
Attempt to fix chat system
-rw-r--r--src/chat_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chat_system.c b/src/chat_system.c
index 6639801..5c21592 100644
--- a/src/chat_system.c
+++ b/src/chat_system.c
@@ -432,7 +432,7 @@ void chat_system(struct user_record *user) {
return;
}
- strlcat(partmessage, readbuffer, sizeof(partmessage));
+ strlcat(partmessage, readbuffer, len);
strlcpy(readbuffer, partmessage, sizeof(readbuffer));
y = 0;