From 0a8bb0da70791d67c4f9017dd9690759c4881e7f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 25 Feb 2014 12:18:12 -0800 Subject: [PATCH] fix handlig of string /dev/input/event[10..49] --- evhz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evhz.c b/evhz.c index 1588024..217e8b0 100644 --- a/evhz.c +++ b/evhz.c @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) { // List input devices for(i = 0; i < EVENTS; i++) { - char device[18]; + char device[19]; sprintf(device, "/dev/input/event%i", i); events[i].fd = open(device, O_RDONLY); -- 2.45.2