diff options
-rw-r--r-- | marsond.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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?)"); |