OSDN Git Service

parisc: pdc_stable: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Fri, 23 Dec 2022 02:40:56 +0000 (10:40 +0800)
committerHelge Deller <deller@gmx.de>
Mon, 9 Jan 2023 08:51:56 +0000 (09:51 +0100)
commitf2193bb2ee6e21d9c2da10ea3ce63b94aea69341
tree8c4f8bad17bfae6f6741862282242635ca0a7600
parentb7bfaa761d760e72a969d116517eaa12e404c262
parisc: pdc_stable: 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>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/pdc_stable.c