lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev dev.10 progress


From: Leonid Pauzner
Subject: Re: lynx-dev dev.10 progress
Date: Wed, 20 Nov 2002 16:25:10 +0300 (MSK)

20-Nov-2002 05:56 Thomas Dickey wrote:

> I tried something like this earlier this morning (am at work now), and it
> did fix the problem.  My guess is that one of the top-level variables is
> being nulled by the new code, and it was checked in the logic for deciding
> how to redisplay.  But narrowing it down to a small chunk is the first
> step in debugging the problem.

My guess is that line->size and '\0' terminated line->data  deviates.
The proposed fix:


--- gridtext.c  Tue Nov 19 11:37:18 2002
+++ gridtext.new        Wed Nov 20 16:04:34 2002
@@ -895,6 +895,7 @@ PUBLIC HText *      HText_new ARGS1(
     line = self->last_line = (HTLine*)tmp_long_line[0];
     line->next = line->prev = line;
     line->offset = line->size = 0;
+    line->data[0] = '\0';
 #ifdef USE_COLOR_STYLE
     line->numstyles = 0;
     line->styles = stylechanges_buffers[0];
@@ -1251,6 +1252,7 @@ PRIVATE int display_line ARGS4(
      *  Add the data, making sure that we do not
      *  go over the COLS limit on the display.
      */
+    assert(line->data[line->size] == '\0');
     data = line->data;
     i++;



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]