summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++) {