This patch fix the below coverity issue:
CID-1706415
Change-Id: I53383e3a78cfeef03b279c49ad9c4c8f31c95fa8
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
ret_if(NULL == scan_result);
_bt_convert_addr_type_to_string(address, scan_result->address.addr);
-
+ // TODO: Change BLUETOOTH_ADVERTISING_DATA_LENGTH_MAX to 250 once LE Extended feature is enabled.
if (scan_result->is_extended) {
- tmp_str = _bt_service_convert_hex_to_string(scan_result->adv_data, 250);
+ tmp_str = _bt_service_convert_hex_to_string(scan_result->adv_data, BLUETOOTH_ADVERTISING_DATA_LENGTH_MAX);
g_free(tmp_str);
tmp_str = NULL;