X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparse.c;h=488557281a2553ea7b70e714ea3f06f3ea69fa08;hp=2afb03a2f57efbb00200bad3b178677d9e202aea;hb=4dc39c08f07428ff5f39acd7b0ddee30e0a004f6;hpb=5deca188ac8e6f5b0a060712b8a71bb4e58573df diff --git a/uip/mhparse.c b/uip/mhparse.c index 2afb03a..4885572 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -253,7 +253,6 @@ get_content(FILE *in, char *file, int toplevel) switch (state = m_getfld(state, name, buf, sizeof(buf), in)) { case FLD: case FLDPLUS: - case FLDEOF: compnum++; /* get copies of the buffers */ @@ -270,15 +269,10 @@ get_content(FILE *in, char *file, int toplevel) /* Now add the header data to the list */ add_header(ct, np, vp); - /* continue, if this isn't the last header field */ - if (state != FLDEOF) { - ct->c_begin = ftell(in) + 1; - continue; - } - /* else fall... */ + ct->c_begin = ftell(in) + 1; + continue; case BODY: - case BODYEOF: ct->c_begin = ftell(in) - strlen(buf); break;