Re: SOCK5 crash+fix

Gisle Vanem <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
> Anyway, this works better.
>   int len = snprintf(NULL, 0, gettext("(for %s at %s) SOCKS5"), protocol, socks5_host);
>   socks5_protocol = malloc (len+1);
>   if (!socks5_protocol)
>       outofmem(__FILE__, "malloc");
>   snprintf(socks5_buf, len, gettext("(for %s at %s) SOCKS5"), protocol, socks5_host);
>   protocol = socks5_protocol;

A bit hasty, should be:
   snprintf(socks5_protocol, len, gettext("(for %s at %s) SOCKS5"), protocol, socks5_host);

-- 
--gv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.