Re: [PATCH] shared/hfp: Improve prefix comparing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux