From a3a6236ccbaf3c979785e624726a42ddd7a2141c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 23 Oct 2016 23:45:34 +0100 Subject: [PATCH] Use HasPrefix() instead of strncmp(). --- uip/slocal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uip/slocal.c b/uip/slocal.c index 772c4e2b..55e2f7fc 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1250,11 +1250,10 @@ you_lose: * and massage the headers. Save * a copy of the "From " line for later. */ - i = LEN("From "); while (fgets (buffer, sizeof(buffer), qfp)) { if (first) { first = 0; - if (!strncmp (buffer, "From ", i)) { + if (HasPrefix(buffer, "From ")) { /* get copy of envelope information ("From " line) */ envelope = mh_xstrdup(buffer); -- 2.56.0