From: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Subject: [PATCH] shared/hfp: Improve prefix comparing
Date: Tue, 2 Dec 2014 12:01:09 +0100 [thread overview]
Message-ID: <1417518069-18289-1-git-send-email-lukasz.rymanowski@tieto.com> (raw)
---
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
next reply other threads:[~2014-12-02 11:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 11:01 Lukasz Rymanowski [this message]
2014-12-03 10:06 ` [PATCH] shared/hfp: Improve prefix comparing Szymon Janc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1417518069-18289-1-git-send-email-lukasz.rymanowski@tieto.com \
--to=lukasz.rymanowski@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox