From 6e593b17849fbd708672769bf3496485d552ae73 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Tue, 11 Sep 2007 18:33:48 +0200 Subject: [PATCH] Enlarge error buffer in mutt_enter_command() to not truncate option queries. The error buffer gets passed down into parse_set() using it to report option values. SHORT_STRING is too short to even print some defaults (e.g. $status_format). --- ChangeLog | 12 ++++++++++++ commands.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 211bd415..c9b1162f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2007-09-11 18:21 +0200 Rocco Rutte (72fdaa70500e) + + * muttlib.c: Let %*X padding share the same code of %>X padding The + current implementation of %*X was completely multibyte-unaware and + had buffer overflow issues with large terminals. Now we use the same + code as %>X has and optionally only truncate left content to make + sure the right content can be printed entirely. + +2007-09-10 11:14 -0700 Vincent Lefevre (664c5ec1a727) + + * ChangeLog, po/fr.po: Updated French translation. + 2007-09-10 08:54 +0200 Rocco Rutte (49d69399cf21) * curs_lib.c, muttlib.c, protos.h: Make mutt_FormatString() more diff --git a/commands.c b/commands.c index 85a67b23..617d4ee5 100644 --- a/commands.c +++ b/commands.c @@ -582,7 +582,7 @@ void mutt_shell_escape (void) void mutt_enter_command (void) { BUFFER err, token; - char buffer[LONG_STRING], errbuf[SHORT_STRING]; + char buffer[LONG_STRING], errbuf[LONG_STRING]; int r; buffer[0] = 0; -- 2.40.0