Skip to content
Commit 30bc30df authored by Zhao Hongjiang's avatar Zhao Hongjiang Committed by Linus Torvalds
Browse files

fs/proc/kcore.c: using strlcpy() instead of strncpy()



For NUL terminated string, set '\0' at the end.

Signed-off-by: default avatarZhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1d98a5fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment