aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/cx23885/cx23885-417.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c
index a8ddc227cf86..abd64e89f60f 100644
--- a/drivers/media/video/cx23885/cx23885-417.c
+++ b/drivers/media/video/cx23885/cx23885-417.c
@@ -1356,7 +1356,7 @@ static int vidioc_querycap(struct file *file, void *priv,
1356 struct cx23885_dev *dev = fh->dev; 1356 struct cx23885_dev *dev = fh->dev;
1357 struct cx23885_tsport *tsport = &dev->ts1; 1357 struct cx23885_tsport *tsport = &dev->ts1;
1358 1358
1359 strcpy(cap->driver, dev->name); 1359 strlcpy(cap->driver, dev->name, sizeof(cap->driver));
1360 strlcpy(cap->card, cx23885_boards[tsport->dev->board].name, 1360 strlcpy(cap->card, cx23885_boards[tsport->dev->board].name,
1361 sizeof(cap->card)); 1361 sizeof(cap->card));
1362 sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); 1362 sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci));