From c4e9a6d93f7aa36862c0441472b7bd446d728a82 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Thu, 18 Oct 2007 10:20:49 +0200 Subject: 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. --- hdrline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdrline.c') diff --git a/hdrline.c b/hdrline.c index a4cfb263..1e63f787 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); -- cgit v1.2.3