Your message dated Wed, 24 Mar 2010 15:25:37 +1100
with message-id <20100324042531.ga11...@dali>
has caused the report #573447,
regarding Segfault when terminal is > 129 lines
to be marked as having been forwarded to the upstream software
author(s) Han Boetes <[email protected]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
573447: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573447
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Han,
Please push this patch upstream. See http://bugs.debian.org/573447
for the original ticket.
Cyril Bouthors wrote:
> mg segfaults when the terminal is bigger than 129 lines.
[email protected] wrote:
> The number of rows is stored in a signed char, hence the 128 rows
> limit. The patch below should fix this.
>
> diff -ur mg-20070918.old/def.h mg-20070918.new/def.h
> --- mg-20070918.old/def.h 2007-05-29 20:47:47.000000000 +0200
> +++ mg-20070918.new/def.h 2010-03-19 20:51:10.000000000 +0100
> @@ -202,9 +202,9 @@
> struct line *w_markp; /* Line containing "mark" */
> int w_doto; /* Byte offset for "." */
> int w_marko; /* Byte offset for "mark" */
> - char w_toprow; /* Origin 0 top row of window */
> - char w_ntrows; /* # of rows of text in window */
> - char w_frame; /* #lines to reframe by. */
> + int w_toprow; /* Origin 0 top row of window */
> + int w_ntrows; /* # of rows of text in window */
> + int w_frame; /* #lines to reframe by. */
> char w_flag; /* Flags. */
> struct line *w_wrapline;
> int w_dotline; /* current line number of dot */
--- End Message ---