Skip to content
Snippets Groups Projects
Commit 7611f92f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve new GCC printf-format warning in new log message text

parent b1928812
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3871 passed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment