diff options
Diffstat (limited to 'drivers/media/usb/pwc/pwc-v4l.c')
-rw-r--r-- | drivers/media/usb/pwc/pwc-v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pwc/pwc-v4l.c b/drivers/media/usb/pwc/pwc-v4l.c index 0673238c2c63..bef6e4ef8a7e 100644 --- a/drivers/media/usb/pwc/pwc-v4l.c +++ b/drivers/media/usb/pwc/pwc-v4l.c | |||
@@ -492,7 +492,7 @@ static int pwc_querycap(struct file *file, void *fh, struct v4l2_capability *cap | |||
492 | { | 492 | { |
493 | struct pwc_device *pdev = video_drvdata(file); | 493 | struct pwc_device *pdev = video_drvdata(file); |
494 | 494 | ||
495 | strcpy(cap->driver, PWC_NAME); | 495 | strscpy(cap->driver, PWC_NAME, sizeof(cap->driver)); |
496 | strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); | 496 | strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); |
497 | usb_make_path(pdev->udev, cap->bus_info, sizeof(cap->bus_info)); | 497 | usb_make_path(pdev->udev, cap->bus_info, sizeof(cap->bus_info)); |
498 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | | 498 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | |