s390/zcrypt: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Thu, 5 Jan 2023 12:24:34 +0000 (20:24 +0800)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:09 +0000 (14:34 +0100)
commita43e3115fbea2f9ba040a183aab300e0abf9cb67
tree2cb3f31f5456440889910297273a10463557766a
parentbeb060ed20d5d5a54754cf78c38731a6a5cb0f18
s390/zcrypt: use strscpy() to instead of strncpy()

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

Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Link: https://lore.kernel.org/r/202301052024349365834@zte.com.cn
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c