From 7d06e6c48f1d7de13106ba04a810b83b406a4706 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 4 Oct 2016 10:18:17 +0200 Subject: [PATCH] Use string_is_equal instead of strncmp --- input/input_autodetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_autodetect.c b/input/input_autodetect.c index 61abac0dcb..0f238a2126 100644 --- a/input/input_autodetect.c +++ b/input/input_autodetect.c @@ -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; }