X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1d08c1e0c0de0d321883ece1c36bce851fe893c7..a0250745de00aacfe03f82bdcc7e5e86f0768dd7:/uip/mhoutsbr.c diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index c9974456..6d65ab6f 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -96,7 +97,7 @@ output_content (CT ct, FILE *out) * headers (since it has no body). */ if (ct->c_ctexbody) { - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return OK; } @@ -124,7 +125,7 @@ output_content (CT ct, FILE *out) fprintf (out, "\n--%s\n", boundary); if (output_content (p, out) == NOTOK) { - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return NOTOK; } @@ -205,7 +206,7 @@ output_content (CT ct, FILE *out) break; } - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return result; @@ -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;