From: Rocco Rutte Date: Tue, 11 Sep 2007 16:33:48 +0000 (+0200) Subject: Enlarge error buffer in mutt_enter_command() to not truncate option queries. X-Git-Tag: mutt-1-5-17-rel~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e593b17849fbd708672769bf3496485d552ae73;p=mutt 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). --- 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;