Re: [PATCH] crypto: hifn_795x - Replace snprintf("%s") with strscpy

From: Herbert Xu

Date: Thu Apr 02 2026 - 21:04:11 EST


On Tue, Mar 24, 2026 at 12:27:05PM +0100, Thorsten Blum wrote:
> Replace snprintf("%s", ...) with the faster and more direct strscpy().
> Check if the return value is less than 0 to detect string truncation.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/hifn_795x.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 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