summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-15 19:15:38 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-15 19:15:38 +0100
commitcb9219211daede9d4f2d16daf7bfd76eedd23ca0 (patch)
tree65d4c0ca7521b5e58faa3d7f2a49bed1d3f3e55b
parent6b546b521ffd02a491708b5919ddeaa1e0f07460 (diff)
Don't print stashed truncated strings in the debug log.
-rw-r--r--blabouncer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blabouncer.c b/blabouncer.c
index d692d19..a84266c 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -319,7 +319,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 '%s' for later.\n", messages[messagecount - 1]);
+ debugprint(DEBUG_FULL, "processrawstring(): Truncated message detected, storing final token for later.\n");
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