diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-03-10 16:45:59 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-03-10 17:05:07 +0100 |
commit | cf5493bb193fa96c84aa0cb8c6689939bdc25656 (patch) | |
tree | b42b34339bc353fbe464e126033e46140485a8cd /mmime.c | |
parent | 76f565640180dd965efdd9faf9b63352ab9f1073 (diff) | |
download | mblaze-cf5493bb193fa96c84aa0cb8c6689939bdc25656.tar.gz mblaze-cf5493bb193fa96c84aa0cb8c6689939bdc25656.tar.xz mblaze-cf5493bb193fa96c84aa0cb8c6689939bdc25656.zip |
mmime: don't create empty lines when wrapping long words in headers.
Reported by Solène Rapenne.
Diffstat (limited to 'mmime.c')
-rw-r--r-- | mmime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mmime.c b/mmime.c index 6334569..b521efc 100644 --- a/mmime.c +++ b/mmime.c @@ -347,7 +347,7 @@ print_header(char *line) { if (!highbit) { if (e-s >= 998) goto force_qp; - if (e-s >= 78 - linelen) { + if (e-s >= 78 - linelen && linelen > 0) { // wrap in advance before long word printf("\n"); linelen = 0; |