leds: as3645a: Fix misuse of strlcpy
Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
Родитель
51251542c9
Коммит
533016c870
|
@ -668,7 +668,7 @@ static int as3645a_v4l2_setup(struct as3645a *flash)
|
|||
};
|
||||
|
||||
strlcpy(cfg.dev_name, led->name, sizeof(cfg.dev_name));
|
||||
strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfg.dev_name));
|
||||
strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfgind.dev_name));
|
||||
|
||||
flash->vf = v4l2_flash_init(
|
||||
&flash->client->dev, flash->flash_node, &flash->fled, NULL,
|
||||
|
|
Загрузка…
Ссылка в новой задаче