From b9036e26a7fa7290f0a45a46aa9fd2e4f9fad3b8 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sat, 22 Jul 2017 16:08:05 -0400 Subject: [PATCH] fix buffer overflow --- input/drivers/udev_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/udev_input.c b/input/drivers/udev_input.c index 209933f870..950096951e 100644 --- a/input/drivers/udev_input.c +++ b/input/drivers/udev_input.c @@ -857,7 +857,7 @@ static void *udev_input_init(const char *joypad_driver) goto error; video_context_driver_get_ident(&ctx_ident); - udev->xkb_handling = string_is_equal_fast(ctx_ident.ident, "kms", 4); + udev->xkb_handling = string_is_equal(ctx_ident.ident, "kms"); #endif fd = epoll_create(32);