Le 29/04/2025 à 13:47, Ioana Ciornei a écrit :
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.b...@linux.dev>
Reviewed-by: Ioana Ciornei <ioana.cior...@nxp.com>
Christophe, could you also pick-up this patch when you have a chance?
Sure I will take it when time comes, but again I'd expect an explanation
inside the patch (below the ---) for the resend. I now have this patch
twice in the list and don't know why, see
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=&submitter=&state=&q=&archive=&delegate=61610
Christophe