summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blabouncer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blabouncer.c b/blabouncer.c
index e958828..a180b5a 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -1894,7 +1894,7 @@ int processrawstring(SSL *server_ssl, char *str, int source, struct client *clie
while ((token = strsep(&strcopy, "\r\n")) != NULL) {
if (*token == '\0') continue; // Skip consecutive matches
- if (counter >= MAXTOKENS) break; // Too many tokens
+ if (messagecount >= MAXTOKENS) break; // Too many tokens
printf("String Token: \"%s\", length %zd.\n", token, strlen(token));
// Copy into the token array (strlen + 1 to get the NULL terminator)
strncpy(messages[messagecount], token, strlen(token) + 1);