diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2020-09-17 12:43:10 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-09-22 11:07:28 +0300 |
commit | 71458ac37bd8519d9cf31dfb29a965451f7fccd7 (patch) | |
tree | 2c382d4ebff61268a2f03f36d3a9b4897c606172 /drivers/staging/media/atomisp/pci | |
parent | f7e52078ce2994fc2fad8d9680e4881fcc2048fa (diff) | |
download | linux-71458ac37bd8519d9cf31dfb29a965451f7fccd7.tar.xz |
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>
Diffstat (limited to 'drivers/staging/media/atomisp/pci')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c index 105c58059d17..2ae50decfc8b 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c +++ b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c @@ -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; |