From: Ralph Corderoy Date: Sun, 23 Oct 2016 22:45:34 +0000 (+0100) Subject: Use HasPrefix() instead of strncmp(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a3a6236ccbaf3c979785e624726a42ddd7a2141c Use HasPrefix() instead of strncmp(). --- 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);