media: atomisp/pci/atomisp_ioctl.c: strlcpy -> strscpy
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 17 Sep 2020 09:43:10 +0000 (11:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 22 Sep 2020 08:07:28 +0000 (10:07 +0200)
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>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c

index 105c58059d17003bc2ab3f215e82066b811d2298..2ae50decfc8bdb7b5b155e118addf47d5a9932ae 100644 (file)
@@ -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;