media: i2c: gc032a: move from strlcpy with unused retval to strscpy

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4e8cd680ae6ea164a167a1c3ba8770b0df64a27c
This commit is contained in:
Tao Huang
2025-02-17 19:32:46 +08:00
parent 48a70e6ffa
commit 19d9c19525

View File

@@ -745,10 +745,10 @@ static void gc032a_get_module_inf(struct gc032a *gc032a,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, gc032a->module_name,
strscpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, gc032a->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, gc032a->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, gc032a->len_name, sizeof(inf->base.lens));
}
static long gc032a_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)