From: Dan Carpenter Date: Thu, 31 Jul 2014 15:20:20 +0000 (+0300) Subject: parisc: sys_hpux: NUL terminator is one past the end X-Git-Tag: fixes-for-v3.18-merge-window~124^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3067bbd1ad8601418a32b839f7a8a2fee9b44bd1;p=pandora-kernel.git 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: Dan Carpenter Signed-off-by: Helge Deller --- Reading git-diff-tree failed