]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
media: m2m-deinterlace: Fix misuse of strscpy
authorJoe Perches <joe@perches.com>
Thu, 4 Jul 2019 23:57:43 +0000 (19:57 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 12:52:40 +0000 (08:52 -0400)
Probable cut&paste typo - use the correct field size.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/m2m-deinterlace.c

index bbf664546697d76c022a3fbec9124aa1962bfbbb..d2c3926269e9472cd7c924f7952c6b2c85c23a72 100644 (file)
@@ -433,7 +433,7 @@ static int vidioc_querycap(struct file *file, void *priv,
 {
        strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver));
        strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card));
-       strscpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->card));
+       strscpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info));
        return 0;
 }