Re: [PATCH] crypto: octeontx2 - Replace deprecated strcpy in cpt_ucode_load_fw
From: Herbert Xu
Date: Thu Nov 06 2025 - 02:24:02 EST
On Sat, Nov 01, 2025 at 03:04:42PM +0100, Thorsten Blum wrote:
> strcpy() is deprecated; use the safer strscpy() instead.
>
> The destination buffer is only zero-initialized for the first iteration
> and since strscpy() guarantees its NUL termination anyway, remove
> zero-initializing 'eng_type'.
>
> Link: https://github.com/KSPP/linux/issues/88
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt