Commit ba78170e authored by Joe Perches's avatar Joe Perches Committed by Mauro Carvalho Chehab

media: go7007: Fix misuse of strscpy

Probable cut&paste typo - use the correct field size.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent f2180adf
...@@ -253,7 +253,7 @@ int go7007_snd_init(struct go7007 *go) ...@@ -253,7 +253,7 @@ int go7007_snd_init(struct go7007 *go)
return ret; return ret;
} }
strscpy(gosnd->card->driver, "go7007", sizeof(gosnd->card->driver)); 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, strscpy(gosnd->card->longname, gosnd->card->shortname,
sizeof(gosnd->card->longname)); sizeof(gosnd->card->longname));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment