aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>2011-06-01 17:28:47 +0200
committerJaikumar Ganesh <jaikumar@google.com>2011-07-11 11:59:16 -0700
commit6fbf3ee003973295e7dfa02628e74d902b1186f3 (patch)
tree7cfe4a2a2d116d47cf7972ad370c3b7ccce2aa07
parentef69a01db23dc1033b969dc09fb9889d89afc2dc (diff)
downloadkernel_samsung_aries-6fbf3ee003973295e7dfa02628e74d902b1186f3.zip
kernel_samsung_aries-6fbf3ee003973295e7dfa02628e74d902b1186f3.tar.gz
kernel_samsung_aries-6fbf3ee003973295e7dfa02628e74d902b1186f3.tar.bz2
Bluetooth: Remove a magic number
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-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 763c9a8..4d4dcbb 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)