lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] lynx gopher telnet item fix


From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx gopher telnet item fix
Date: Tue, 7 Jan 2025 04:00:08 -0500

On Mon, Jan 06, 2025 at 05:51:51PM -0800, Ben Collver wrote:
> Good day,
> 
> The current version of lynx cannot open the telnet link in the following
> gopher menu.
> 
> gopher://mud.nemesis.de/1
> 
> When the selector is empty, lynx uses a format with the wrong number
> of arguments.
> 
> >From lynx2.9.2/WWW/Library/Implementation/HTGopher.c:
> 
>     const char *format = *selector ? "%s//%s@%s/" : "%s//%s/";
>     ...
>     HTSprintf0(&address, format, STR_TELNET_URL, selector, host);
> 
> The problem happens when the format calls for 2 arguments, but lynx
> passes it 3.  Consequently, it ignores the host in the 3rd argument
> and this results in a broken telnet item.
> 
> Attached is a patch to fix this problem.

thanks :-)

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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