summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index ce90532..176e1b2 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -143,7 +143,7 @@ ipset_match_cmd(const char *arg, const char * const name[])
if (len > strlen(name[0]) || !len)
return false;
- else if (strcmp(arg, name[0]) == 0)
+ else if (strncmp(arg, name[0], len) == 0)
return true;
else if (len != 1)
return false;