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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6184d39eddfba9b20341aeca44b9c34694439326
This commit is contained in:
Tao Huang
2025-02-17 19:32:50 +08:00
parent 672a3c85bd
commit bbb0cb3029

View File

@@ -911,10 +911,10 @@ static void ov13850_get_module_inf(struct ov13850 *ov13850,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV13850_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov13850->module_name,
strscpy(inf->base.sensor, OV13850_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov13850->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov13850->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov13850->len_name, sizeof(inf->base.lens));
}
static long ov13850_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)