Commit e19af6d5 authored by osku's avatar osku

row_mysql_is_system_table(): Use strncmp, not memcmp, since we don't know

how long the input string is.
parent 3c8c28df
......@@ -85,9 +85,11 @@ row_mysql_is_system_table(
system table name */
const char* name)
{
if (memcmp(name, "mysql/", 6)) {
if (strncmp(name, "mysql/", 6) != 0) {
return(FALSE);
}
return(0 == strcmp(name + 6, "host")
|| 0 == strcmp(name + 6, "user")
|| 0 == strcmp(name + 6, "db"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment