From 88a45dd3a21847fced861f276a642118e2dbfda1 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Fri, 30 Aug 2024 18:41:01 +0900 Subject: [PATCH] udev-seat: Replace strncmp with streq for safety Change-Id: I80c8e93473571e99e34529ead31bd557a8d20495 --- src/udev-seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev-seat.c b/src/udev-seat.c index 52013e39..8da98089 100644 --- a/src/udev-seat.c +++ b/src/udev-seat.c @@ -341,7 +341,7 @@ udev_input_enable(struct libinput *libinput) } /* Skip only when the event source of udev monitor has been set as "udev" or null. */ - if (!env || (0 == strncmp("udev", env, 4))) { + if (!env || strneq("udev", env, 4)) { _udev_monitor_skip_unconfigured_device = 1; log_info(libinput, "will skip addition of unconfigured devices. (env=%s)\n", env ? env : "null"); } -- 2.34.1