Skip to content
Commit 3067bbd1 authored by Dan Carpenter's avatar Dan Carpenter Committed by Helge Deller
Browse files

parisc: sys_hpux: NUL terminator is one past the end



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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 68e37028
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment