eizoctl: more careful data handling
This commit is contained in:
parent
c3f20ee473
commit
ef82918f78
@ -950,7 +950,7 @@ eizo_watch(struct eizo_monitor *m)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (r->report_size == 16)
|
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]));
|
printf(" %04x", peek_u16le(&buf[7 + i]));
|
||||||
else
|
else
|
||||||
for (size_t i = 0; i < rlen; i++)
|
for (size_t i = 0; i < rlen; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user