summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>2011-06-01 15:28:47 (GMT)
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 19:58:19 (GMT)
commit24718ca5eeb6d36a4a78deb34a2d50e4017bbd4a (patch)
tree098739a0259360ed2ea31e76a2214bca50ca4caf /net
parentb5ad8b7f8c3f3711129d67aeda85ceec690c3cd0 (diff)
downloadlinux-fsl-qoriq-24718ca5eeb6d36a4a78deb34a2d50e4017bbd4a.tar.xz
Bluetooth: Remove a magic number
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 89bc36a..5415423 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1143,7 +1143,7 @@ static int pin_code_reply(struct sock *sk, u16 index, unsigned char *data,
bacpy(&reply.bdaddr, &cp->bdaddr);
reply.pin_len = cp->pin_len;
- memcpy(reply.pin_code, cp->pin_code, 16);
+ memcpy(reply.pin_code, cp->pin_code, sizeof(reply.pin_code));
err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_REPLY, sizeof(reply), &reply);
if (err < 0)