diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-25 11:21:28 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-25 11:21:28 +0000 |
commit | be15b141e0dddd9f41e464ca98aef1b05b28cf6b (patch) | |
tree | 94b26dd8001eef4275e68fe03cf85990d4bfea5a /hw/bt-hci.c | |
parent | 9b4c14c35bff99476b0223e87532f8d53a9909c4 (diff) | |
download | qemu-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.c | 2 |
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, ¶ms, READ_LOCAL_NAME_RP_SIZE); } |