From: Pierre Habouzit Date: Sun, 25 Nov 2007 13:18:34 +0000 (+0100) Subject: workaround a stupid issue in how decoding is performed in mutt *sigh* X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=819c071fa7efc8dffb4dd92f36f0111227ff692f;p=apps%2Fmadmutt.git workaround a stupid issue in how decoding is performed in mutt *sigh* Signed-off-by: Pierre Habouzit --- diff --git a/handler.c b/handler.c index 11ff8a2..54b4839 100644 --- a/handler.c +++ b/handler.c @@ -139,8 +139,8 @@ static void qp_decode_line (char *dest, char *src, ssize_t * l, int last) static void mutt_decode_quoted (STATE * s, long len, int istext, iconv_t cd) { - char line[STRING]; - char decline[2 * STRING]; + char line[10 * STRING]; + char decline[20 * STRING]; ssize_t l = 0; ssize_t linelen; /* number of input bytes in `line' */ ssize_t l3; @@ -182,6 +182,7 @@ static 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, &l3, last); l += l3; + assert (l < sizeof(decline)); mutt_convert_to_state (cd, decline, &l, s); }