[PATCH] bus: fsl-mc: Use strscpy() instead of strscpy_pad()
Christophe Leroy
christophe.leroy at csgroup.eu
Sat May 17 20:19:39 AEST 2025
On Sun, 13 Apr 2025 19:29:50 +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.
>
> [...]
Applied, thanks!
[1/1] bus: fsl-mc: Use strscpy() instead of strscpy_pad()
commit: 61ddf5faa7cc091b409936d571ec1af34ce487a1
Best regards,
--
Christophe Leroy <christophe.leroy at csgroup.eu>
More information about the Linuxppc-dev
mailing list