<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Fix <buffy-list>



Hi,

the <buffy-list> function is "broken" because it too small fixed-sized buffer for its output, 160 currently. However, my terminal is 181 columns wide and always wondered if it's my patched mutt that causes the info to be truncated. Turns out it's not. :-)

The attached patch uses 2*STRING (512 byte) and I hope that it's enough for some to come. As an alternative, we could also get memory dynamically via curses' COLS...

  bye, Rocco
--
:wq!
diff --git a/buffy.c b/buffy.c
index 3f12cfc..266d514 100644
--- a/buffy.c
+++ b/buffy.c
@@ -438,7 +438,7 @@ int mutt_buffy_list (void)
 {
   BUFFY *tmp;
   char path[_POSIX_PATH_MAX];
-  char buffylist[160];
+  char buffylist[2*STRING];
   int pos;
   int first;