X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Fm_getfld.c;h=6931b2eb25d1f41fbe3cc6b83741a7c7587c735d;hb=10eff860a28b96582526eb739fd0a55441669938;hp=3539ed4f28ae1ee1e14276e07fed033297e7902e;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8;p=mmh diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 3539ed4..6931b2e 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -187,8 +187,6 @@ m_getfld(int state, unsigned char *name, unsigned char *buf, } switch (state) { - case FLDEOF: - case BODYEOF: case FLD: if (c == '\n' || c == '-') { /* we hit the header/body separator */ @@ -611,7 +609,7 @@ thisisanmbox(FILE *iob) continue; } c = strlen(delimstr); - fdelim = (unsigned char *) mh_xmalloc((size_t) (c + 3)); + fdelim = (unsigned char *) mh_xcalloc((size_t) (c + 3), sizeof(char)); *fdelim++ = '\0'; *fdelim = '\n'; msg_delim = (char *)fdelim+1;