aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/timblogiw.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-12-20 07:53:16 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:17:04 -0500
commitdcd745b723efc875ec5a8f44be028bd0704b12d6 (patch)
treebdd2d0cb614d4359ba2cbed11be45a47608815be /drivers/media/video/timblogiw.c
parentef330dc2e794c932fcbde3f8abd3f12780d78b47 (diff)
[media] timblogiw: too large value for strncpy()
This is a copy and paste error. It should be using sizeof(cap->driver) instead of sizeof(cap->card). Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Richard Rojförs <richard.rojfors@pelagicore.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/timblogiw.c')
-rw-r--r--drivers/media/video/timblogiw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c
index cf48aa934b8c..700c08aca6c6 100644
--- a/drivers/media/video/timblogiw.c
+++ b/drivers/media/video/timblogiw.c
@@ -241,7 +241,7 @@ static int timblogiw_querycap(struct file *file, void *priv,
241 dev_dbg(&vdev->dev, "%s: Entry\n", __func__); 241 dev_dbg(&vdev->dev, "%s: Entry\n", __func__);
242 memset(cap, 0, sizeof(*cap)); 242 memset(cap, 0, sizeof(*cap));
243 strncpy(cap->card, TIMBLOGIWIN_NAME, sizeof(cap->card)-1); 243 strncpy(cap->card, TIMBLOGIWIN_NAME, sizeof(cap->card)-1);
244 strncpy(cap->driver, DRIVER_NAME, sizeof(cap->card)-1); 244 strncpy(cap->driver, DRIVER_NAME, sizeof(cap->driver) - 1);
245 strlcpy(cap->bus_info, vdev->name, sizeof(cap->bus_info)); 245 strlcpy(cap->bus_info, vdev->name, sizeof(cap->bus_info));
246 cap->version = TIMBLOGIW_VERSION_CODE; 246 cap->version = TIMBLOGIW_VERSION_CODE;
247 cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | 247 cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING |