iankelling.org
/
git
/
evhz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85054bc
)
fix handlig of string /dev/input/event[10..49]
author
Ian Kelling
<ian@iankelling.org>
Tue, 25 Feb 2014 20:18:12 +0000
(12:18 -0800)
committer
Ian Kelling
<ian@iankelling.org>
Tue, 25 Feb 2014 20:18:12 +0000
(12:18 -0800)
evhz.c
patch
|
blob
|
history
diff --git
a/evhz.c
b/evhz.c
index 1588024ba06b69b4daf35de3805f33592da56139..217e8b0710f4c5fe86a991fd82733a94e468d3bc 100644
(file)
--- 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[1
8
];
+ char device[1
9
];
sprintf(device, "/dev/input/event%i", i);
events[i].fd = open(device, O_RDONLY);