summaryrefslogtreecommitdiffstats
path: root/src/hci.c
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-11-22 21:54:27 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-11-22 21:54:27 +0000
commita1e51b622a5d7dad098ed0b856c37c18da495692 (patch)
treedd7023c3ad72427c617a9ab937f2717203ae6deb /src/hci.c
parente101b08ba577ff8f6a2a789eb67d128977859fd3 (diff)
Fix hci_for_each_dev() to work on big endian machines.
Diffstat (limited to 'src/hci.c')
-rw-r--r--src/hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci.c b/src/hci.c
index dcc24666..89d481b4 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -369,7 +369,7 @@ int hci_for_each_dev(int flag, int(*func)(int s, int dev_id, long arg), long arg
if (s < 0)
return -1;
- dl = malloc(HCI_MAX_DEV * sizeof(struct hci_dev_req) + sizeof(uint16_t));
+ dl = malloc(HCI_MAX_DEV * sizeof(*dr) + sizeof(*dl));
if (!dl) {
close(s);
return -1;