From 1555816b6ceb82559fdaff41df7fed70ca07e628 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 20 Oct 2016 00:32:30 +0100 Subject: [PATCH] Replace sizeof string constant - 1 with LEN(). --- mts/smtp/smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.56.0