diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-07-31 17:20:20 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2014-08-27 14:33:46 +0200 |
commit | 3067bbd1ad8601418a32b839f7a8a2fee9b44bd1 (patch) | |
tree | e1904a8727024097863224b71347a641d587bd0e /drivers/parisc/Makefile | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s39... (diff) | |
download | linux-3067bbd1ad8601418a32b839f7a8a2fee9b44bd1.tar.xz linux-3067bbd1ad8601418a32b839f7a8a2fee9b44bd1.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc/Makefile')
0 files changed, 0 insertions, 0 deletions