]> granicus.if.org Git - mutt/commitdiff
Fix multibyte encodings with quoted-printable.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 17 May 2001 04:16:02 +0000 (04:16 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 17 May 2001 04:16:02 +0000 (04:16 +0000)
(patch-1.3.18.tt.decode_quoted.1)
From TAKIZAWA Takashi <taki@luna.email.ne.jp>.

handler.c

index 33de4e939fe8fe28fd887b867a2ba8641a47c345..c41e50b16a13e548b41b386889ce82f94a95e70b 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -236,6 +236,7 @@ void mutt_decode_quoted (STATE *s, long len, int istext, iconv_t cd)
   char decline[2*STRING];
   size_t l = 0;
   size_t l2;
+  size_t l3;
 
   state_set_prefix(s);
 
@@ -260,7 +261,8 @@ void mutt_decode_quoted (STATE *s, long len, int istext, iconv_t cd)
      * decode and do character set conversion
      */
     
-    qp_decode_line (decline + l, line, &l);
+    qp_decode_line (decline + l, line, &l3);
+    l += l3;
     convert_to_state (cd, decline, &l, s);
   }