On Wed, 18 Jan 2023 04:01:52 +0200, Dmitry Baryshkov wrote: > Using strncpy can result in non-NULL-terminated destination string. Use > strscpy instead. This fixes following warning: > > drivers/gpu/drm/msm/msm_fence.c: In function ‘msm_fence_context_alloc’: > drivers/gpu/drm/msm/msm_fence.c:25:9: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] > 25 | strncpy(fctx->name, name, sizeof(fctx->name)); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > [...] Applied, thanks! [1/1] drm/msm: use strscpy instead of strncpy https://gitlab.freedesktop.org/lumag/msm/-/commit/d7fd8634f48d Best regards, -- Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>