aboutsummaryrefslogtreecommitdiff
path: root/eizoctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'eizoctl.c')
-rw-r--r--eizoctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eizoctl.c b/eizoctl.c
index eadb1e0..727171c 100644
--- a/eizoctl.c
+++ b/eizoctl.c
@@ -950,7 +950,7 @@ eizo_watch(struct eizo_monitor *m)
continue;
}
if (r->report_size == 16)
- for (size_t i = 0; i < rlen; i += 2)
+ for (size_t i = 0; i + 1 < rlen; i += 2)
printf(" %04x", peek_u16le(&buf[7 + i]));
else
for (size_t i = 0; i < rlen; i++)