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>
This commit is contained in:
parent
f2180adfd7
commit
ba78170ef1
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user