Merge tag 'media/v4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[muen/linux.git] / drivers / media / v4l2-core / v4l2-subdev.c
index 0fdbd85..f5f0d71 100644 (file)
@@ -276,7 +276,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
                        p->flags |= V4L2_CHIP_FL_WRITABLE;
                if (sd->ops->core && sd->ops->core->g_register)
                        p->flags |= V4L2_CHIP_FL_READABLE;
-               strlcpy(p->name, sd->name, sizeof(p->name));
+               strscpy(p->name, sd->name, sizeof(p->name));
                return 0;
        }
 #endif