From 874cd15f2f9206a7e6fb4b1a9ca7b2c40da92395 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 6 Dec 2021 14:05:54 +0900 Subject: [PATCH] Fix invalid unique name issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I/BLUETOOTH_FRWK_SERVICE( 392): bt-service-main.c: __on_log_glib(85) > g_variant_new_string: assertion 'g_utf8_validate (string, -1, NULL)' failed E/CYNARA ( 392): Getting client credentials by calling dbus method GetConnectionCredentials on Id <:1.19482`��U> failed with error Change-Id: I296767876dc143449d8147e00cc3d302ce0378d8 --- bt-service/services/bt-request-handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt-service/services/bt-request-handler.c b/bt-service/services/bt-request-handler.c index 69eff8b..1c5f4d6 100644 --- a/bt-service/services/bt-request-handler.c +++ b/bt-service/services/bt-request-handler.c @@ -350,7 +350,7 @@ static void __bt_service_method(GDBusConnection *connection, * from the bt-service in host. At this time, the original sender's privilege * should be checked not bt-service's privilege */ if (_bt_service_is_container() == TRUE) - unique_name = g_variant_get_data(param1); + unique_name = (const char *)g_variant_get_data(param1); else unique_name = sender; #else -- 2.7.4