From: Ralph Corderoy Date: Wed, 19 Oct 2016 23:32:30 +0000 (+0100) Subject: Replace sizeof string constant - 1 with LEN(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1555816b6ceb82559fdaff41df7fed70ca07e628 Replace sizeof string constant - 1 with LEN(). --- diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 26241ae1..4fe71547 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -813,7 +813,7 @@ again: ; &errstr)) != NULL ; ) { if (doingEHLO - && strncmp (buffer, "250", sizeof("250") - 1) == 0 + && strncmp (buffer, "250", LEN("250")) == 0 && (buffer[3] == '-' || doingEHLO == 2) && buffer[4]) { if (doingEHLO == 2) {