add free_field as standard for struct field
[mmh] / uip / mhmisc.c
index 313719f..0f0a8d6 100644 (file)
@@ -11,6 +11,8 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include <stdarg.h>
+#include <sys/stat.h>
 
 extern int debugsw;
 
@@ -51,7 +53,7 @@ part_ok(CT ct, int sP)
 
        for (ap = parts; *ap; ap++) {
                len = strlen(*ap);
-               if (!strncmp(*ap, ct->c_partno, len) &&
+               if (strncmp(*ap, ct->c_partno, len)==0 &&
                                (!ct->c_partno[len] ||
                                ct->c_partno[len] == '.' ))
                        return 1;