mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Replace uses of strndup (a GNU extension) with Qemu pstrdup
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5532 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
be15b141e0
commit
2bd7318c1a
3 changed files with 14 additions and 1 deletions
|
@ -1814,7 +1814,7 @@ static void bt_submit_hci(struct HCIInfo *info,
|
|||
|
||||
if (hci->device.lmp_name)
|
||||
free((void *) hci->device.lmp_name);
|
||||
hci->device.lmp_name = strndup(PARAM(change_local_name, name),
|
||||
hci->device.lmp_name = pstrdup(PARAM(change_local_name, name),
|
||||
sizeof(PARAM(change_local_name, name)));
|
||||
bt_hci_event_complete_status(hci, HCI_SUCCESS);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue