aboutsummaryrefslogtreecommitdiff
path: root/hw/bt-hci.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 11:21:28 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 11:21:28 +0000
commitbe15b141e0dddd9f41e464ca98aef1b05b28cf6b (patch)
tree94b26dd8001eef4275e68fe03cf85990d4bfea5a /hw/bt-hci.c
parent9b4c14c35bff99476b0223e87532f8d53a9909c4 (diff)
downloadqemu-be15b141e0dddd9f41e464ca98aef1b05b28cf6b.zip
qemu-be15b141e0dddd9f41e464ca98aef1b05b28cf6b.tar.gz
qemu-be15b141e0dddd9f41e464ca98aef1b05b28cf6b.tar.bz2
Replace uses of strncpy (a GNU extension) with Qemu pstrcpy
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5531 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/bt-hci.c')
-rw-r--r--hw/bt-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bt-hci.c b/hw/bt-hci.c
index 725e32c..714e726 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, &params, READ_LOCAL_NAME_RP_SIZE);
}