X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_getfld.c;h=826cfb3f945ce8ed8d48aeaed763ce19405ff63c;hb=f5df6f250dc5862488efb0198823c68f5b573ccc;hp=1cc041b54a98e59fde88330cfafcfb602729a74a;hpb=219ca2478b42be77eee20866a8a6cf8b87f3a59c;p=mmh diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 1cc041b..826cfb3 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 */ @@ -628,7 +626,7 @@ thisisanmbox(FILE *iob) ** separator) or the last char (since the matchc would have found it ** if it was a real delim). */ - pat_map = (unsigned char **) calloc(256, sizeof(unsigned char *)); + pat_map = (unsigned char **) mh_xcalloc(256, sizeof(unsigned char *)); for (cp = (char *) fdelim + 1; cp < (char *) delimend; cp++ ) pat_map[(unsigned char)*cp] = (unsigned char *) cp;