mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
media: atomisp/pci/atomisp_ioctl.c: strlcpy -> strscpy
strscpy is preferred over strlcpy and is the standard in the media subsystem. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f7e52078ce
commit
71458ac37b
@@ -797,7 +797,7 @@ static int atomisp_enum_fmt_cap(struct file *file, void *fh,
|
||||
continue;
|
||||
}
|
||||
|
||||
strlcpy(f->description, format->description,
|
||||
strscpy(f->description, format->description,
|
||||
sizeof(f->description));
|
||||
f->pixelformat = format->pixelformat;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user