]> granicus.if.org Git - mutt/commitdiff
Enlarge error buffer in mutt_enter_command() to not truncate option queries.
authorRocco Rutte <pdmef@gmx.net>
Tue, 11 Sep 2007 16:33:48 +0000 (18:33 +0200)
committerRocco Rutte <pdmef@gmx.net>
Tue, 11 Sep 2007 16:33:48 +0000 (18:33 +0200)
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
commands.c

index 211bd415c6ef06b7d59269c3bfba78e6f6d4633a..c9b1162f2e0c4977337b7e43c76d43cf9bc241e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2007-09-11 18:21 +0200  Rocco Rutte  <pdmef@gmx.net>  (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  <vincent@vinc17.org>  (664c5ec1a727)
+
+       * ChangeLog, po/fr.po: Updated French translation.
+
 2007-09-10 08:54 +0200  Rocco Rutte  <pdmef@gmx.net>  (49d69399cf21)
 
        * curs_lib.c, muttlib.c, protos.h: Make mutt_FormatString() more
index 85a67b233fdbcf38c7c26403c2920bb8af4bf0d9..617d4ee534ec5db8aa7c102867e9670a11c45bff 100644 (file)
@@ -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;