Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
input-utils
input-utils-eviocgbit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File input-utils-eviocgbit.patch of Package input-utils
--- evtest.c +++ evtest.c @@ -333,14 +333,14 @@ printf("Input device name: \"%s\"\n", name); memset(bit, 0, sizeof(bit)); - ioctl(fd, EVIOCGBIT(0, EV_MAX), bit[0]); + ioctl(fd, EVIOCGBIT(0, sizeof(bit[0])), bit[0]); printf("Supported events:\n"); for (i = 0; i < EV_MAX; i++) if (test_bit(i, bit[0])) { printf(" Event type %d (%s)\n", i, events[i] ? events[i] : "?"); if (!i) continue; - ioctl(fd, EVIOCGBIT(i, KEY_MAX), bit[i]); + ioctl(fd, EVIOCGBIT(i, sizeof(bit[i])), bit[i]); for (j = 0; j < KEY_MAX; j++) if (test_bit(j, bit[i])) { printf(" Event code %d (%s)\n", j, names[i] ? (names[i][j] ? names[i][j] : "?") : "?");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor