]> diplodocus.org Git - nmh/blobdiff - uip/mhoutsbr.c
Reworked output handling.
[nmh] / uip / mhoutsbr.c
index 89b4b932901234a1209c08340a2a4c75494614c9..6d65ab6fd81abaf91feb576ee952a72b2b92db97 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <h/mh.h>
 #include <fcntl.h>
+#include <h/utils.h>
 #include <h/md5.h>
 #include <h/mts.h>
 #include <h/tws.h>
@@ -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;