Skip to content

Commit

Permalink
leds: as3645a: Fix misuse of strlcpy
Browse files Browse the repository at this point in the history
Probable cut&paste typo - use the correct field size.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Jacek Anaszewski <[email protected]>
  • Loading branch information
JoePerches authored and jacek-anaszewski committed Jul 22, 2019
1 parent 5125154 commit 533016c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-as3645a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 533016c

Please sign in to comment.