X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;h=81ddaf76d9cd7d665e04d845830b99d06eb8f9ca;hp=fae91b3debd3c75d688563b4c08cff0e4b55c690;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=e2c71f66b925a33cceb1ea4b75a62a05333d124a diff --git a/uip/sendsbr.c b/uip/sendsbr.c index fae91b3..81ddaf7 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -15,6 +15,7 @@ #include #include #include +#include #ifdef TIME_WITH_SYS_TIME # include @@ -208,8 +209,7 @@ attach(char *attachment_header_field_name, char *draft_file_name) * This buffer might need to be quite large, so we grow it as needed. */ - if ((field = (char *)malloc(field_size = 256)) == (char *)0) - adios(NULL, "can't allocate field buffer."); + field = (char *)mh_xmalloc(field_size = 256); /* * Scan the draft file for a header field name that matches the -attach