X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;h=81ddaf76d9cd7d665e04d845830b99d06eb8f9ca;hp=9d90e0fb400d28830d96a6340c99df1593dc5709;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=ce802211fc851f4fc22bfb34da8bc3166d3b23c2 diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 9d90e0f..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 @@ -1020,7 +1020,7 @@ annoaux (int fd) if (is_selected(mp, msgnum)) { if (debugsw) advise (NULL, "annotate message %d", msgnum); - annotate (m_name (msgnum), annotext, cp, inplace, 1, -1, 0); + annotate (m_name (msgnum), annotext, cp, inplace, 1, -2, 0); } }