X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=3ffb3f0cda908b80c7ea92f6570cf2619046bb73;hp=c2172981a03886e89d12bc0e156576360f49e40f;hb=26a1babec6628dff14e428def9cff4e92a4ef7c8;hpb=c8e3d1cce2a8af0b4725e1a751f8795bf04487da diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index c217298..3ffb3f0 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -144,7 +144,7 @@ static const char *_mutt_libesmtp_messagefp_cb (void **buf, int *len, int octets; if (*buf == NULL) - *buf = malloc (BUFLEN); + *buf = xmalloc(BUFLEN); if (len == NULL) { rewind ((FILE *) arg); @@ -158,7 +158,7 @@ static const char *_mutt_libesmtp_messagefp_cb (void **buf, int *len, char *p = strchr (*buf, '\0'); if (p[-1] == '\n' && p[-2] != '\r') { - strcpy (p - 1, "\r\n"); + m_strcpy(p - 1, "\r\n"); p++; } octets = p - (char *) *buf;