Use strncpy instead of snprintf for uinput device name assignment.