lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] junk pointer


From: Thomas Dickey
Subject: Re: [Lynx-dev] junk pointer
Date: Thu, 30 Dec 2004 20:18:31 -0500 (EST)

On Thu, 30 Dec 2004, Thomas Dickey wrote:

On Thu, 30 Dec 2004, Stef Caunter wrote:

Haven't seen this before. Built dev9 --with-ssl, --enable-file-upload.

I guess this is platform specific, but stderr (see below) appears in the
displayed text for http://nfl.com, http://nba.com, http://msn.com.

my lynx -version:

Lynx Version 2.8.6dev.9 (30 Dec 2004)
libwww-FM 2.14, SSL-MM 1.4.1, OpenSSL 0.9.7-beta3, ncurses 5.2.20010224
Built on openbsd3.3 Dec 30 2004 14:14:16

Here's the fix for that bug (in case I was unclear before):

diff -u LYUtils.c.orig LYUtils.c
--- LYUtils.c.orig      2004-12-30 07:20:28.000000000 -0500
+++ LYUtils.c   2004-12-30 19:52:35.000000000 -0500
@@ -2009,6 +2009,7 @@
        if ((cp2 = strchr((cp + 1), '/')) != NULL && cp2 < cp1)
            return (NOT_A_URL_TYPE);
        *cp1 = '\0';
+       cp2 = NULL;
        StrAllocCopy(cp2, cp);
        *cp1 = ':';
        StrAllocCat(cp2, "_proxy");

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




reply via email to

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