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 bbf6645..d2c3926 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;
 }