diff options
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index 27c6cb3677..8aff7262dd 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1173,8 +1173,12 @@ handle_text_plain (CamelMimePart *part, const char *mime_type, * skip over it. */ p = strchr (start, '\n'); - if (!p++) + /* Last line, drop out, and dump */ + if (p == NULL) { + p = start; break; + } + p++; mail_text_write (md->html, md->stream, "%.*s", p-start, start); } else if (p) mail_html_write (md->html, md->stream, "<hr>"); |