lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV patches for lynx 2.7.1


From: John E. Davis
Subject: LYNX-DEV patches for lynx 2.7.1
Date: Wed, 7 May 1997 17:53:51 -0400

The following patches affect 3 files.  The most serious bug is the use
of StrAllocCat instead of StrAllocCopy in LYReadCFG.c:

--- LYReadCFG.c~        Sat Mar  8 09:11:48 1997
+++ LYReadCFG.c Wed May  7 17:27:03 1997
@@ -1124,7 +1124,7 @@
 
        case 'X':
        if (!strncasecomp(buffer, "XLOADIMAGE_COMMAND:", 19)) {
-           StrAllocCat(XLoadImageCommand, (char *)&buffer[19]);
+           StrAllocCopy(XLoadImageCommand, (char *)&buffer[19]);
        }
        break;

The second patch affects two files and is a cosmetic fix.  Many times,
e.g., while searching and the search fails, lynx will needlessly
redraw the screen.  This behavior has bothered me for some time.  The
following patch will allow the (slang) screen management facility to
make the decision about whether or not to redraw the screen.

--- LYCurses.c~ Tue Feb  4 17:06:58 1997
+++ LYCurses.c  Tue May  6 01:58:52 1997
@@ -56,6 +56,14 @@
     return;
 }

+void sl_clear (void)
+{
+   int r, c;
+
+   SLsmg_gotorc (0, 0);
+   SLsmg_erase_eos ();
+}
+
 #ifdef VMS
 PUBLIC void VTHome NOARGS
 {
--- LYCurses.h~ Mon Dec  9 15:37:18 1996
+++ LYCurses.h  Tue May  6 01:58:42 1997
@@ -130,7 +130,7 @@
 #define LINES SLtt_Screen_Rows
 #define move SLsmg_gotorc
 #define addstr SLsmg_write_string
-#define clear SLsmg_cls
+#define clear sl_clear
 #define standout SLsmg_reverse_video
 #define standend  SLsmg_normal_video
 #define clrtoeol SLsmg_erase_eol


;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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