[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <kko4akbacnugkdughit5ty6vpzg4wjiif3rh4w75hd67v34nre@ngpqhwjb5l4p>
Date: Tue, 29 Apr 2025 14:47:26 +0300
From: Ioana Ciornei <ioana.ciornei@....com>
To: Thorsten Blum <thorsten.blum@...ux.dev>, christophe.leroy@...roup.eu
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH] bus: fsl-mc: Use strscpy() instead of
strscpy_pad()
On Tue, Apr 29, 2025 at 12:41:48PM +0200, Thorsten Blum wrote:
> Both destination buffers are already zero-initialized, making strscpy()
> sufficient for safely copying 'obj_type'. The additional NUL-padding
> performed by strscpy_pad() is unnecessary.
>
> If the destination buffer has a fixed length, strscpy() automatically
> determines its size using sizeof() when the argument is omitted. This
> makes the explicit size arguments unnecessary.
>
> No functional changes intended.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
Reviewed-by: Ioana Ciornei <ioana.ciornei@....com>
Christophe, could you also pick-up this patch when you have a chance?
Thank you,
Ioana
Powered by blists - more mailing lists