X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhparse.c;h=f667713900f3f865553813104ef7c88c2c208036;hb=d3ba09a465cb0e5fc9a74d0b152a7ed965f895cb;hp=1ac7ea9a1f34767a170a6aff3e0c557582b1cced;hpb=b0b1dd37ff515578cf7cba51625189eb34a196cb;p=mmh diff --git a/uip/mhparse.c b/uip/mhparse.c index 1ac7ea9..f667713 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -199,7 +199,7 @@ parse_mime(char *file) /* ** Check if file is actually standard input */ - if ((is_stdin = !(strcmp(file, "-")))) { + if ((is_stdin = (strcmp(file, "-")==0))) { char *tfile = m_mktemp2(NULL, invo_name, NULL, &fp); if (tfile == NULL) { advise("mhparse", "unable to create temporary file"); @@ -1197,7 +1197,7 @@ InitMultiPart(CT ct) if (buffer[0] != '-' || buffer[1] != '-') continue; if (inout) { - if (strcmp(buffer + 2, m->mp_start)) + if (strcmp(buffer + 2, m->mp_start)!=0) continue; next_part: if ((part = (struct part *) calloc(1, sizeof(*part)))