1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[nntp] crash on nntp://news.neodome.net . Refs #114

This commit is contained in:
Witold Filipczyk 2021-03-31 14:01:49 +02:00
parent fe2d4e26a7
commit ab758c79b5

View File

@ -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\">",
field, struri(conn->uri), field);
field = line;
line = strchr((const char *)line, '\t');
if (line)
*line++ = 0;
if (line) {
field = line;
line = strchr((const char *)line, '\t');
if (line)
*line++ = 0;
add_header_to_string(html, field);
add_header_to_string(html, field);
}
add_to_string(html, "</a> ");
if (line) {