aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--marsond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marsond.c b/marsond.c
index b1b5368..87ddf14 100644
--- a/marsond.c
+++ b/marsond.c
@@ -339,8 +339,8 @@ int main(int argc, char **argv) {
device number, but it's just 0 for no error. */
if(ioctl(outfd, UI_DEV_CREATE) >= 0) {
if(debugging) {
- char name[64];
- if(ioctl(outfd, UI_GET_SYSNAME(sizeof(name)), name) >= 0) {
+ char name[UINPUT_MAX_NAME_SIZE];
+ if(ioctl(outfd, UI_GET_SYSNAME(UINPUT_MAX_NAME_SIZE), name) >= 0) {
debug("created virtual keyboard device: /sys/devices/virtual/input/%s/", name);
} else {
debug("created virtual keyboard device but couldn't get its name (old kernel?)");