Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()
From: Bjorn Andersson
Date: Tue Jun 17 2025 - 17:31:51 EST
On Tue, 29 Apr 2025 12:45:43 +0200, Thorsten Blum wrote:
> kzalloc() already zero-initializes the destination buffer, making
> strscpy() sufficient for safely copying the name. The additional NUL-
> padding performed by strscpy_pad() is unnecessary.
>
> The size parameter is optional, and strscpy() automatically determines
> the size of the destination buffer using sizeof() when the argument is
> omitted. RPMSG_NAME_SIZE is equal to sizeof(rpdev->id.name) and can be
> removed - remove it.
>
> [...]
Applied, thanks!
[1/1] rpmsg: Use strscpy() instead of strscpy_pad()
commit: 28b825975b8feb352e996d77f679e790b4d84913
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>