diff options
author | Bruna Moreira <bruna.moreira@openbossa.org> | 2011-04-27 16:21:03 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-27 16:25:02 -0700 |
commit | cef88385008d999c515366ebe6c01e3f6967fb61 (patch) | |
tree | ab84b5f5376f241f2a43eabe8e274c3d174722b8 /lib/hci.c | |
parent | cabcf8599c445acb7bad11ac7c94b5989fd9ac54 (diff) | |
download | bluez-cef88385008d999c515366ebe6c01e3f6967fb61.tar.gz |
Use HCI_MAX_EIR_LENGTH instead of hard-coded value
Diffstat (limited to 'lib/hci.c')
-rw-r--r-- | lib/hci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2291,7 +2291,7 @@ int hci_read_ext_inquiry_response(int dd, uint8_t *fec, uint8_t *data, int to) } *fec = rp.fec; - memcpy(data, rp.data, 240); + memcpy(data, rp.data, HCI_MAX_EIR_LENGTH); return 0; } @@ -2304,7 +2304,7 @@ int hci_write_ext_inquiry_response(int dd, uint8_t fec, uint8_t *data, int to) memset(&cp, 0, sizeof(cp)); cp.fec = fec; - memcpy(cp.data, data, 240); + memcpy(cp.data, data, HCI_MAX_EIR_LENGTH); memset(&rq, 0, sizeof(rq)); rq.ogf = OGF_HOST_CTL; |