]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: mca: use strscpy() is more robust and safer
authorxu xin <xu.xin16@zte.com.cn>
Fri, 30 Sep 2022 06:19:50 +0000 (06:19 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 12 Oct 2022 01:51:10 +0000 (18:51 -0700)
commit56e8dc086926c529f3244d171d30b9420595b0f2
tree51a10e4884d3cd192f968c2e4d3ff1d6f431bfa2
parent478e7d7aeedeaf7943069a853d348887b4eae097
ia64: mca: use strscpy() is more robust and safer

The implementation of strscpy() is more robust and safer.  That's now the
recommended way to copy NUL terminated strings.

Link: https://lkml.kernel.org/r/20220930061950.288290-1-xu.xin16@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Cc: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/ia64/kernel/mca.c