
< 	cmd_buf = memdup_user(buffer, count + 1);
---
> 	cmd_buf = strndup_user(buffer, count);
