-
由 Dan Carpenter 提交于
We allocate "len" number of chars so we should put the NUL at "len - 1" to avoid corrupting memory. Btw, strlen_user() is different from the normal strlen() function because it includes NUL terminator in the count. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NHelge Deller <deller@gmx.de>
3067bbd1