Diff between 51a72497b211bbd300a9b3bc1ff5591577ffc603 and ea41c2e66a0481961b5c322b774f82d97f7208a5
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +1 | -4 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 9a66ed2..0ce38cc 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -135,10 +135,7 @@ static bool match_handler_prefix(const void *a, const void *b)
const struct cmd_handler *handler = a;
const char *prefix = b;
- if (strlen(handler->prefix) != strlen(prefix))
- return false;
-
- if (memcmp(handler->prefix, prefix, strlen(prefix)))
+ if (strcmp(handler->prefix, prefix) != 0)
return false;
return true;