}
switch (state) {
- case FLDEOF:
- case BODYEOF:
case FLD:
if (c == '\n' || c == '-') {
/* we hit the header/body separator */
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;