From 7efd7fe72c12bc80b93e3ec9dc9bf8456f442d1c Mon Sep 17 00:00:00 2001 From: Abhinav Baid Date: Mon, 17 Jun 2024 21:34:32 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Marco Trevisan --- libfprint/fp-context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fp-context.c b/libfprint/fp-context.c index a75b2c32..b3932e4f 100644 --- a/libfprint/fp-context.c +++ b/libfprint/fp-context.c @@ -538,7 +538,7 @@ fp_context_enumerate (FpContext *context) const gchar * sysfs = g_udev_device_get_sysfs_path (matched_misc->data); if (!sysfs) continue; - if (strstr (sysfs, entry->misc_name)) + if (g_str_has_suffix (sysfs, entry->misc_name)) break; } /* If match was not found exit */