drm/nouveau: refactor deprecated strcpy
authorMadhur Kumar <madhurkumar004@gmail.com>
Thu, 4 Dec 2025 12:08:22 +0000 (17:38 +0530)
committerLyude Paul <lyude@redhat.com>
Fri, 5 Dec 2025 19:58:53 +0000 (14:58 -0500)
commit2bdc2c0e12fac56e41ec05fb771ead986ea6dac0
tree02111620f185a9c147349df056e942a9e4b1ce47
parent479acb9db3199cdb70e5478a6f633b5f20c7d8df
drm/nouveau: refactor deprecated strcpy

strcpy() has been deprecated because it performs no bounds checking on the
destination buffer, which can lead to buffer overflows. Use the safer
strscpy() instead.

Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Fixes: 15a996bbb697 ("drm/nouveau: assign fence_chan->name correctly")
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20251204120822.17502-1-madhurkumar004@gmail.com
drivers/gpu/drm/nouveau/nouveau_fence.c