Skip to content

Commit

Permalink
bt member typo
Browse files Browse the repository at this point in the history
Terminate sec_event.cfm_req.bd_name string, not sec_event.pin_req.bd_name
  • Loading branch information
tgotic committed Aug 4, 2022
1 parent 7bfb89e commit b513ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/bta/dm/bta_dm_act.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
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 */
sec_event.cfm_req.bd_name[0] = '\0';
}
Expand Down

0 comments on commit b513ad9

Please sign in to comment.