diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-09-15 19:37:12 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-09-15 19:37:12 +0100 |
commit | c600744e8b569efe4e38a4c4f617e0a246c4e745 (patch) | |
tree | 6d43f54ec147747290ae050ed60c2cea061e3322 | |
parent | cb9219211daede9d4f2d16daf7bfd76eedd23ca0 (diff) |
Make sure some temporary nick strings are large enough to hold a full :nick!user@host string.
-rw-r--r-- | message.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) { |