mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
parse_table(): use strlcasecmp() instead of strncasecmp().
This commit is contained in:
parent
3fe59e8c7a
commit
b63dd28500
@ -715,9 +715,9 @@ see:
|
||||
|
||||
/* THEAD TBODY TFOOT */
|
||||
if (!closing_tag && namelen == 5
|
||||
&& ((!strncasecmp(&name[1], "HEAD", 4)) ||
|
||||
(!strncasecmp(&name[1], "BODY", 4)) ||
|
||||
(!strncasecmp(&name[1], "FOOT", 4)))) {
|
||||
&& ((!strlcasecmp(&name[1], namelen - 1, "HEAD", 4)) ||
|
||||
(!strlcasecmp(&name[1], namelen - 1, "BODY", 4)) ||
|
||||
(!strlcasecmp(&name[1], namelen - 1, "FOOT", 4)))) {
|
||||
if (c_span) new_columns(table, c_span, c_width, c_al, c_val, 1);
|
||||
|
||||
add_table_bad_html_end(table, html);
|
||||
|
Loading…
Reference in New Issue
Block a user