From c600744e8b569efe4e38a4c4f617e0a246c4e745 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 15 Sep 2019 19:37:12 +0100 Subject: Make sure some temporary nick strings are large enough to hold a full :nick!user@host string. --- message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'message.c') 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++) { -- cgit v1.2.3