From: Rocco Rutte Date: Thu, 18 Oct 2007 08:20:49 +0000 (+0200) Subject: Enlarge temporary buffer in hdr_format_str to prevent subject truncation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a393dff4d8c28cf7d955859bef51f0f19032ee7b;p=neomutt Enlarge temporary buffer in hdr_format_str to prevent subject truncation. The subject along with the thread tree are composed using a SHORT_STRING-sized buffer which may lead to truncation even though the destination buffer is large enough. --- diff --git a/hdrline.c b/hdrline.c index a4cfb263c..1e63f7870 100644 --- a/hdrline.c +++ b/hdrline.c @@ -243,7 +243,7 @@ hdr_format_str (char *dest, struct hdr_format_info *hfi = (struct hdr_format_info *) data; HEADER *hdr, *htmp; CONTEXT *ctx; - char fmt[SHORT_STRING], buf2[SHORT_STRING], ch, *p; + char fmt[SHORT_STRING], buf2[LONG_STRING], ch, *p; int do_locales, i; int optional = (flags & M_FORMAT_OPTIONAL); int threads = ((Sort & SORT_MASK) == SORT_THREADS);