Closed ollieparanoid closed 2 years ago
Thanks!
To save the next reader from repeating the counting, what do you think about adding a comment /* 11 characters for /dev/input/ + length of name + 1 NUL terminator */
above this line?
Good idea, done.
Merged!
Fix missing space in malloc for path for \0 at the end of the string. The 11 bytes at the beginning are for "/dev/input/".
(Found with valgrind)