fs/proc/kcore.c: using strlcpy() instead of strncpy()
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Wed, 3 Jul 2013 22:08:28 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:02 +0000 (16:08 -0700)
commit30bc30df102b2d0c003d93477e04b97e6c528573
tree47ddf47773fa5335036d994874af629291715fab
parent1d98a5fa11e9a66a7cf7b03f73cab60184781065
fs/proc/kcore.c: using strlcpy() instead of strncpy()

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

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/kcore.c