From: Brendan Cully Date: Fri, 13 Apr 2007 16:21:20 +0000 (-0700) Subject: Fix header wrapping X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2832274effd6e437a55719331194b7b8747ca55;p=neomutt Fix header wrapping --- diff --git a/sendlib.c b/sendlib.c index b6198ef1b..dd2efa504 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1619,7 +1619,7 @@ int mutt_write_one_header (FILE *fp, const char *tag, const char *value, const c */ for (i = 0, k = 0, l = 0, n = 0; i + MB_CUR_MAX < sizeof (buf) && cp[i] != '\0' && - ((col < (wraplen + (k ? 0 : wraplen)) || in_encoded_word)); + ((col < (wraplen + (k ? 0 : k)) || in_encoded_word)); i += l) {