mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bt member typo
Terminate sec_event.cfm_req.bd_name string, not sec_event.pin_req.bd_name
This commit is contained in:
parent
d3a7d21d0c
commit
a29b415749
@ -2908,7 +2908,7 @@ static UINT8 bta_dm_authorize_cback (BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NA
|
|||||||
|
|
||||||
if (p_result && p_result->status == BTM_SUCCESS) {
|
if (p_result && p_result->status == BTM_SUCCESS) {
|
||||||
BCM_STRNCPY_S((char *)sec_event.cfm_req.bd_name, (char *)p_result->remote_bd_name, BD_NAME_LEN);
|
BCM_STRNCPY_S((char *)sec_event.cfm_req.bd_name, (char *)p_result->remote_bd_name, BD_NAME_LEN);
|
||||||
sec_event.pin_req.bd_name[BD_NAME_LEN] = '\0';
|
sec_event.cfm_req.bd_name[BD_NAME_LEN] = '\0';
|
||||||
} else { /* No name found */
|
} else { /* No name found */
|
||||||
sec_event.cfm_req.bd_name[0] = '\0';
|
sec_event.cfm_req.bd_name[0] = '\0';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user