From 7611f92f4057dae1dd11878aecf539c61ccb36eb Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Mon, 27 Feb 2023 17:31:54 -0800 Subject: [PATCH] Resolve new GCC printf-format warning in new log message text --- src/sbbs3/mailsrvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c index 1cbd682a46..5ba4bad4ac 100644 --- a/src/sbbs3/mailsrvr.c +++ b/src/sbbs3/mailsrvr.c @@ -3216,7 +3216,7 @@ static void smtp_thread(void* arg) break; if(strlen(buf) > 998) { /* RFC2822: "Each line of characters MUST be no more than 998 characters" */ lprintf(LOG_WARNING, "%04d %s %s sent an ILLEGALLY-LONG line (%d chars > 998): '%s'" - ,socket, client.protocol, client_id, strlen(buf), buf); + ,socket, client.protocol, client_id, (int)strlen(buf), buf); sockprintf(socket, client.protocol, session, "500 Line too long"); break; } -- GitLab