aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/ivtv/ivtv-ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c
index 90f59c4155ae..15cac1812122 100644
--- a/drivers/media/video/ivtv/ivtv-ioctl.c
+++ b/drivers/media/video/ivtv/ivtv-ioctl.c
@@ -742,7 +742,8 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void
742 742
743 memset(vcap, 0, sizeof(*vcap)); 743 memset(vcap, 0, sizeof(*vcap));
744 strcpy(vcap->driver, IVTV_DRIVER_NAME); /* driver name */ 744 strcpy(vcap->driver, IVTV_DRIVER_NAME); /* driver name */
745 strcpy(vcap->card, itv->card_name); /* card type */ 745 strncpy(vcap->card, itv->card_name,
746 sizeof(vcap->card)-1); /* card type */
746 strcpy(vcap->bus_info, pci_name(itv->dev)); /* bus info... */ 747 strcpy(vcap->bus_info, pci_name(itv->dev)); /* bus info... */
747 vcap->version = IVTV_DRIVER_VERSION; /* version */ 748 vcap->version = IVTV_DRIVER_VERSION; /* version */
748 vcap->capabilities = itv->v4l2_cap; /* capabilities */ 749 vcap->capabilities = itv->v4l2_cap; /* capabilities */