aboutsummaryrefslogtreecommitdiff
path: root/util-linux/acpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/acpid.c')
-rw-r--r--util-linux/acpid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c
index fc8151f6a..0f2cb6bdc 100644
--- a/util-linux/acpid.c
+++ b/util-linux/acpid.c
@@ -151,7 +151,7 @@ static const char *find_action(struct input_event *ev, const char *buf)
151 } 151 }
152 152
153 if (buf) { 153 if (buf) {
154 if (strncmp(buf, evt_tab[i].desc, strlen(buf)) == 0) { 154 if (is_prefixed_with(evt_tab[i].desc, buf)) {
155 action = evt_tab[i].desc; 155 action = evt_tab[i].desc;
156 break; 156 break;
157 } 157 }