From: Amit Purwar Date: Tue, 11 Sep 2018 12:05:12 +0000 (+0530) Subject: TFIVE-12640: fixed the size of handle string X-Git-Tag: accepted/tizen/unified/20180913.064014~3^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=f366df31a759764b949997cd374f1fea5b009987 TFIVE-12640: fixed the size of handle string Change-Id: I944c5d7d6e45d96b88be179d0c57113afd87cc05 Signed-off-by: Amit Purwar --- diff --git a/bt-service-adaptation/services/health/bt-service-hdp.c b/bt-service-adaptation/services/health/bt-service-hdp.c index fb3519d..1ef5cb2 100644 --- a/bt-service-adaptation/services/health/bt-service-hdp.c +++ b/bt-service-adaptation/services/health/bt-service-hdp.c @@ -92,7 +92,7 @@ static void __bt_hdp_handle_pending_request_info(int result, BT_DBG("app_handle: %s", app_handle); out_param = g_array_new(FALSE, FALSE, sizeof(gchar)); - g_array_append_vals(out_param, app_handle, BT_MAX_HANDLE_LENGTH); + g_array_append_vals(out_param, app_handle, strlen(app_handle)); _bt_service_method_return(req_info->context, out_param, result); g_free(req_info->user_data); _bt_free_info_from_invocation_list(req_info);