Re: [PATCH linux-next] drm/virtio: use strscpy() to instead of strncpy()

2023-02-26 Thread Dmitry Osipenko
On 12/7/22 04:13, yang.yan...@zte.com.cn wrote: > From: Xu Panda > > The implementation of strscpy() is more robust and safer. > That's now the recommended way to copy NUL terminated strings. > > Signed-off-by: Xu Panda > Signed-off-by: Yang Yang > --- > drivers/gpu/drm/virtio/virtgpu_vq.c |

[PATCH linux-next] drm/virtio: use strscpy() to instead of strncpy()

2022-12-06 Thread yang.yang29
From: Xu Panda The implementation of strscpy() is more robust and safer. That's now the recommended way to copy NUL terminated strings. Signed-off-by: Xu Panda Signed-off-by: Yang Yang --- drivers/gpu/drm/virtio/virtgpu_vq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git