summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2007-10-18 10:20:49 +0200
committerRocco Rutte <pdmef@gmx.net>2007-10-18 10:20:49 +0200
commitc4e9a6d93f7aa36862c0441472b7bd446d728a82 (patch)
treee323f675f39432f2e3a7e628e6926f9bb0978b36 /hdrline.c
parente23a74d39a2dbbff3ea7b2844fad3c5e4190e604 (diff)
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.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c2
1 files changed, 1 insertions, 1 deletions
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);