1
0
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:
Laurent MONIN 2005-12-06 15:17:56 +01:00 committed by Laurent MONIN
parent 3fe59e8c7a
commit b63dd28500

View File

@ -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);