diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/bt-hci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bt-hci.c b/hw/bt-hci.c index 725e32c95d..714e72671c 100644 --- a/hw/bt-hci.c +++ b/hw/bt-hci.c @@ -1385,7 +1385,7 @@ static inline void bt_hci_event_complete_read_local_name(struct bt_hci_s *hci) params.status = HCI_SUCCESS; memset(params.name, 0, sizeof(params.name)); if (hci->device.lmp_name) - strncpy(params.name, hci->device.lmp_name, sizeof(params.name)); + pstrcpy(params.name, sizeof(params.name), hci->device.lmp_name); bt_hci_event_complete(hci, ¶ms, READ_LOCAL_NAME_RP_SIZE); } |