]> granicus.if.org Git - neomutt/commitdiff
Fix header wrapping
authorBrendan Cully <brendan@kublai.com>
Fri, 13 Apr 2007 16:21:20 +0000 (09:21 -0700)
committerBrendan Cully <brendan@kublai.com>
Fri, 13 Apr 2007 16:21:20 +0000 (09:21 -0700)
sendlib.c

index b6198ef1b218c02c63a58ffcc2481004a748a5e7..dd2efa504081bbcb7da7d43ff426db19fe865e90 100644 (file)
--- 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)
     {