X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;fp=mutt_libesmtp.c;h=82e1a5f35602d5969fd12355b6715ecb4f0a0e2a;hp=3ffb3f0cda908b80c7ea92f6570cf2619046bb73;hb=8fdb4b6b3ef01527b99bdcb1c0542cb2abf1056a;hpb=688ac22f746f785c27ac99ac86aa85a3035a3638 diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index 3ffb3f0..82e1a5f 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -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') { - m_strcpy(p - 1, "\r\n"); + m_strcpy(p - 1, *buf + BUFLEN - p + 1, "\r\n"); p++; } octets = p - (char *) *buf;