diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-06-03 09:12:14 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-06-11 20:13:10 +0300 |
commit | 48b532b9d2a2f27920878a0faea7fac05ec2ebc0 (patch) | |
tree | 23d1b54bec8c756b1fcfbeed0c81c024e2ffc9b2 /drivers/staging/media/atomisp/pci/atomisp_tpg.c | |
parent | baf768cf29f8fb1529e160e3ee481746ae78f6c7 (diff) | |
download | linux-48b532b9d2a2f27920878a0faea7fac05ec2ebc0.tar.xz |
media: atomisp: use strscpy() instead of less secure variants
Replace usages of strcpy(), strlcpy() and strncpy() in favor
of strscpy().
Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp_tpg.c')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp_tpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_tpg.c b/drivers/staging/media/atomisp/pci/atomisp_tpg.c index 9477ac5e22b9..1def80bab180 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_tpg.c +++ b/drivers/staging/media/atomisp/pci/atomisp_tpg.c @@ -148,7 +148,7 @@ int atomisp_tpg_init(struct atomisp_device *isp) tpg->isp = isp; v4l2_subdev_init(sd, &tpg_ops); sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; - strcpy(sd->name, "tpg_subdev"); + strscpy(sd->name, "tpg_subdev", sizeof(sd->name)); v4l2_set_subdevdata(sd, tpg); pads[0].flags = MEDIA_PAD_FL_SINK; |