summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2023-07-24 23:14:37 +0100
committerLuke Bratch <luke@bratch.co.uk>2023-07-24 23:14:37 +0100
commitd499630b0aa2f701ada64c59ab20ac5ff12c19c2 (patch)
tree684f6f1aa3ea95543bb47fbf6ba93880400d4dd9
parentc2a20b4edb60ae03382e45e42d379117af2a995d (diff)
Add some extra debugging for truncated messages.
-rw-r--r--blabouncer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 8156ab4..878dbd1 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -320,7 +320,7 @@ int processrawstring(SSL *server_ssl, char *str, int source, struct client *clie
// Copy to a holding area for continuation next time
// (Only if source was the server since we always strip \r\n from client messages when recving - TODO - Should we be doing that?
if (strlen(str) > 2 && (str[strlen(str)-2] != 13 || str[strlen(str)-1] != 10) && source == SOURCE_SERVER) {
- debugprint(DEBUG_FULL, "processrawstring(): Truncated message detected, storing final token for later.\n");
+ debugprint(DEBUG_FULL, "processrawstring(): Truncated message detected, storing final token for later. strlen(str) == '%d', str[strlen(str)-2] == '%d', str[strlen(str)-1] == '%d'.\n", strlen(str), str[strlen(str)-2], str[strlen(str)-1]);
strncpy(ircdstate->currentmsg, messages[messagecount - 1], strlen(messages[messagecount - 1]));
ircdstate->currentmsg[strlen(messages[messagecount - 1])] = '\0';
// Remove it from the message count so it's not processed time time