summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-15 19:37:12 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-15 19:37:12 +0100
commitc600744e8b569efe4e38a4c4f617e0a246c4e745 (patch)
tree6d43f54ec147747290ae050ed60c2cea061e3322
parentcb9219211daede9d4f2d16daf7bfd76eedd23ca0 (diff)
Make sure some temporary nick strings are large enough to hold a full :nick!user@host string.
-rw-r--r--message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/message.c b/message.c
index a7bef1e..6b88871 100644
--- a/message.c
+++ b/message.c
@@ -272,7 +272,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Get each channel the QUITting user was in, and log the quit from that channel if enabled
if (settings->logging) {
- char quitnick[MAXNICKLENGTH];
+ char quitnick[MAXDATASIZE];
strcpy(quitnick, tokens[0]);
extractnickfromprefix(quitnick);
for (int i = 0; i < MAXCHANNELS; i++) {
@@ -485,7 +485,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Get each channel the old nick was in, and log the NICK change in that channel if enabled
if (settings->logging) {
- char oldnick[MAXNICKLENGTH];
+ char oldnick[MAXDATASIZE];
strcpy(oldnick, tokens[0]);
extractnickfromprefix(oldnick);
for (int i = 0; i < MAXCHANNELS; i++) {