mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[nntp] crash on nntp://news.neodome.net . Refs #114
This commit is contained in:
parent
fe2d4e26a7
commit
ab758c79b5
@ -431,12 +431,14 @@ add_nntp_html_line(struct string *html, struct connection *conn,
|
|||||||
add_format_to_string(html, "<li value=\"%s\"><a href=\"%s/%s\">",
|
add_format_to_string(html, "<li value=\"%s\"><a href=\"%s/%s\">",
|
||||||
field, struri(conn->uri), field);
|
field, struri(conn->uri), field);
|
||||||
|
|
||||||
field = line;
|
if (line) {
|
||||||
line = strchr((const char *)line, '\t');
|
field = line;
|
||||||
if (line)
|
line = strchr((const char *)line, '\t');
|
||||||
*line++ = 0;
|
if (line)
|
||||||
|
*line++ = 0;
|
||||||
|
|
||||||
add_header_to_string(html, field);
|
add_header_to_string(html, field);
|
||||||
|
}
|
||||||
add_to_string(html, "</a> ");
|
add_to_string(html, "</a> ");
|
||||||
|
|
||||||
if (line) {
|
if (line) {
|
||||||
|
Loading…
Reference in New Issue
Block a user