summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--evtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index 1f9b908..0077899 100644
--- a/evtest.c
+++ b/evtest.c
@@ -1043,7 +1043,7 @@ static int print_events(int fd)
select(fd + 1, &rdfs, NULL, NULL, NULL);
if (stop)
break;
- rd = read(fd, ev, sizeof(struct input_event) * 64);
+ rd = read(fd, ev, sizeof(ev));
if (rd < (int) sizeof(struct input_event)) {
printf("expected %d bytes, got %d\n", (int) sizeof(struct input_event), rd);