Re: [PATCH v2] crypto: hisilicon - fix strncpy warning with strscpy

2020-06-25 Thread Herbert Xu
On Mon, Jun 15, 2020 at 11:38:37AM +0800, Zhangfei Gao wrote: > Use strscpy to fix the warning > warning: 'strncpy' specified bound 64 equals destination size > > Reported-by: kernel test robot > Signed-off-by: Zhangfei Gao > --- > v2: Use strscpy instead of strlcpy since better truncation handl

[PATCH v2] crypto: hisilicon - fix strncpy warning with strscpy

2020-06-14 Thread Zhangfei Gao
Use strscpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size Reported-by: kernel test robot Signed-off-by: Zhangfei Gao --- v2: Use strscpy instead of strlcpy since better truncation handling suggested by Herbert Rebase to 5.8-rc1 drivers/crypto/hisilico