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

Re: [PATCH] Fix <buffy-list>



On Fri, 17 Nov 2006, Rocco Rutte wrote:

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...

I recall a few years ago that slang had a buffer-overflow incident from someone running a 1000-column display...

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net