]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf/sync_file: use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Fri, 1 Jul 2022 11:26:07 +0000 (19:26 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Aug 2022 11:50:49 +0000 (13:50 +0200)
commitcb24af0c7aca955089329925b9473413c6e00b17
treeacac5a4f21595f1c4cf1f1f79771080d4e013a6b
parent77ca7dfb7d55ffef676687cb166eda77bb0ed5e8
dma-buf/sync_file: use strscpy to replace strlcpy

The strlcpy should not be used because it doesn't limit the source
length. Preferred is strscpy.

Signed-off-by: XueBing Chen <chenxuebing@jari.cn>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/6aad3bff.d1a.181b982d1b1.Coremail.chenxuebing@jari.cn
drivers/dma-buf/sync_file.c