Re: [PATCH] rpmsg: virtio: replace deprecated strncpy with strscpy/_pad

2023-10-23 Thread Mathieu Poirier
Hi Justin, On Sat, Oct 21, 2023 at 12:09:16AM +, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > This patch replaces 3 callsites of strncpy(). > > The first

[PATCH] rpmsg: virtio: replace deprecated strncpy with strscpy/_pad

2023-10-20 Thread Justin Stitt
strncpy() is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. This patch replaces 3 callsites of strncpy(). The first two populate the destination buffer `nsm.name` -- which we expect to be NUL-terminated b