From: Ian Kelling Date: Tue, 25 Feb 2014 20:18:12 +0000 (-0800) Subject: fix handlig of string /dev/input/event[10..49] X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=0a8bb0da70791d67c4f9017dd9690759c4881e7f;p=evhz fix handlig of string /dev/input/event[10..49] --- 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);