OSDN Git Service

crypto: hisilicon - fix strncpy warning with strscpy
authorZhangfei Gao <zhangfei.gao@linaro.org>
Mon, 15 Jun 2020 03:38:37 +0000 (11:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jun 2020 04:46:42 +0000 (14:46 +1000)
commit6ec5e8b5e7148c3ece1850dffd62a493dbfc2d22
tree55d67e389ce2a3bf6b58cd81d6ea7b85c54ba021
parenta05b1c150f5bc0f83313a5e14b94725b5eda5f29
crypto: hisilicon - fix strncpy warning with strscpy

Use strscpy to fix the warning
warning: 'strncpy' specified bound 64 equals destination size

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c