Diff between 99d8fd0d0b144ced84a91f806100f17b05ebeb40 and e69ace75ab894eed750b1deae1dc858548691ff5
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +1 | -1 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 5a91d12..ead082e 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -936,7 +936,7 @@ static bool match_handler_event_prefix(const void *a, const void *b)
const struct event_handler *handler = a;
const char *prefix = b;
- if (memcmp(handler->prefix, prefix, strlen(prefix)))
+ if (strcmp(handler->prefix, prefix) != 0)
return false;
return true;