summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/hciconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index 1e1813f9..e6868f0c 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -666,7 +666,7 @@ static void cmd_class(int ctl, int hdev, char *opt)
printf("\tService Classes: ");
if (cls[2]) {
int first = 1;
- for (s = 0; s < sizeof(*services); s++)
+ for (s = 0; s < (sizeof(services) / sizeof(*services)); s++)
if (cls[2] & (1 << s)) {
if (!first)
printf(", ");