Skip to content

Commit 6f344e1

Browse files
committed
make the bits arrays large enough
1 parent 91a0433 commit 6f344e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎evdev/input.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static PyObject *
139139
ioctl_capabilities(PyObject *self, PyObject *args)
140140
{
141141
int fd, ev_type, ev_code;
142-
char ev_bits[EV_MAX/8], code_bits[KEY_MAX/8];
142+
char ev_bits[EV_MAX/8 + 1], code_bits[KEY_MAX/8 + 1];
143143
struct input_absinfo absinfo;
144144

145145
int ret = PyArg_ParseTuple(args, "i", &fd);

0 commit comments

Comments
 (0)