From: Ralph Corderoy Date: Sun, 23 Oct 2016 22:20:58 +0000 (+0100) Subject: Use HasPrefix() instead of strncmp(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b0d15cadcb4d61a51073a099990e853808b39e6d Use HasPrefix() instead of strncmp(). --- diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index 89b4b932..6d65ab6f 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -365,7 +366,7 @@ writeQuoted (CT ct, FILE *out) * doesn't falsely match an mbox delimiter. */ cp = bufp; - if (gotlen >= 5 && strncmp (cp, "From ", 5) == 0) { + if (gotlen >= 5 && HasPrefix(cp, "From ")) { fprintf (out, "=%02X", 'F'); cp++; n += 3;