Use strncpy() instead of strcpy() to set the uinput device name. (dm)