diff options
author | Matadeen Mishra <matade@codeaurora.org> | 2016-07-05 15:42:33 +0530 |
---|---|---|
committer | Matadeen Mishra <matade@codeaurora.org> | 2016-07-05 15:43:57 +0530 |
commit | 2c5e7dcd7ff4d003479a2297e1caafceecbe0362 (patch) | |
tree | c2f4653c4588d77f169f69ac5ce7bdd80c606652 | |
parent | fb6f6971efff1bb02aeaa0c7c0f05f7b1f234e7e (diff) | |
download | android_hardware_qcom_sdm845_bt-2c5e7dcd7ff4d003479a2297e1caafceecbe0362.tar.gz android_hardware_qcom_sdm845_bt-2c5e7dcd7ff4d003479a2297e1caafceecbe0362.tar.bz2 android_hardware_qcom_sdm845_bt-2c5e7dcd7ff4d003479a2297e1caafceecbe0362.zip |
Bluedroid: Fixed Static Analysis Issues
Removed banned function.
Change-Id: I6b37df2988c472bef23a3ea42f6917f70b9ff565
CRs-Fixed: 890309
-rw-r--r-- | libbt-vendor/src/bt_vendor_qcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c index 22600f6..36b9fee 100644 --- a/libbt-vendor/src/bt_vendor_qcom.c +++ b/libbt-vendor/src/bt_vendor_qcom.c @@ -617,7 +617,7 @@ static int init(const bt_vendor_callbacks_t* p_cb, unsigned char *local_bdaddr) vnd_local_bd_addr[5]); /*Update the property here so that It can be fetched at wcnss_filter*/ - sprintf(address, "%02x:%02x:%02x:%02x:%02x:%02x", + snprintf(address, sizeof(address), "%02x:%02x:%02x:%02x:%02x:%02x", vnd_local_bd_addr[0], vnd_local_bd_addr[1], vnd_local_bd_addr[2], |