summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/go7007
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-07-04 19:57:44 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-23 08:53:08 -0400
commitba78170ef15371276c22255a88453c2f15529130 (patch)
tree69b6092abd4e9201bb406a590785d5c3c351bec5 /drivers/media/usb/go7007
parentf2180adfd7a3d0715726474411bdf925010d4c29 (diff)
downloadlinux-ba78170ef15371276c22255a88453c2f15529130.tar.bz2
media: go7007: Fix misuse of strscpy
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>
Diffstat (limited to 'drivers/media/usb/go7007')
-rw-r--r--drivers/media/usb/go7007/snd-go7007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/go7007/snd-go7007.c b/drivers/media/usb/go7007/snd-go7007.c
index 4a449c62fc32..b05fa227ffb2 100644
--- a/drivers/media/usb/go7007/snd-go7007.c
+++ b/drivers/media/usb/go7007/snd-go7007.c
@@ -253,7 +253,7 @@ int go7007_snd_init(struct go7007 *go)
return ret;
}
strscpy(gosnd->card->driver, "go7007", sizeof(gosnd->card->driver));
- strscpy(gosnd->card->shortname, go->name, sizeof(gosnd->card->driver));
+ strscpy(gosnd->card->shortname, go->name, sizeof(gosnd->card->shortname));
strscpy(gosnd->card->longname, gosnd->card->shortname,
sizeof(gosnd->card->longname));