From: Szymon Janc <szymon.janc@tieto.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] shared/hfp: Improve prefix comparing
Date: Wed, 03 Dec 2014 11:06:40 +0100 [thread overview]
Message-ID: <2856408.IYG60yLa7R@uw000953> (raw)
In-Reply-To: <1417518069-18289-1-git-send-email-lukasz.rymanowski@tieto.com>
Hi Łukasz,
On Tuesday 02 of December 2014 12:01:09 Lukasz Rymanowski wrote:
> ---
> 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;
Applied, thanks.
--
Best regards,
Szymon Janc
prev parent reply other threads:[~2014-12-03 10:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 11:01 [PATCH] shared/hfp: Improve prefix comparing Lukasz Rymanowski
2014-12-03 10:06 ` Szymon Janc [this message]
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=2856408.IYG60yLa7R@uw000953 \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lukasz.rymanowski@tieto.com \
/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