From 12b4397df7ab63302991814f1a3c35756dd5a360 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 15 Mar 2017 13:05:15 +0200 Subject: [PATCH] client: Use case insensitive matching for addresses Allow giving Bluetooth addresses both in upper and lower case. --- client/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.c b/client/main.c index e1198a83b..165886f8f 100644 --- a/client/main.c +++ b/client/main.c @@ -670,7 +670,7 @@ static struct adapter *find_ctrl_by_address(GList *source, const char *address) dbus_message_iter_get_basic(&iter, &str); - if (!strcmp(str, address)) + if (!strcasecmp(str, address)) return adapter; } @@ -691,7 +691,7 @@ static GDBusProxy *find_proxy_by_address(GList *source, const char *address) dbus_message_iter_get_basic(&iter, &str); - if (!strcmp(str, address)) + if (!strcasecmp(str, address)) return proxy; } -- 2.47.3