Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] shared/hfp: Improve prefix comparing
@ 2014-12-02 11:01 Lukasz Rymanowski
  2014-12-03 10:06 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Rymanowski @ 2014-12-02 11:01 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lukasz Rymanowski

---
 src/shared/hfp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-03 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 11:01 [PATCH] shared/hfp: Improve prefix comparing Lukasz Rymanowski
2014-12-03 10:06 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox