Use string_is_equal instead of strncmp

This commit is contained in:
twinaphex 2016-10-04 10:18:17 +02:00
parent 72caa55e7b
commit 7d06e6c48f

View File

@ -107,7 +107,7 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
else
{
if (!string_is_empty(ident)
&& !strncmp(params->name, ident, strlen(ident)))
&& string_is_equal(params->name, ident))
score += 1;
}