mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
media: pci/tbscapture: Replace strlcpy() with strscpy()
This commit is contained in:
@@ -109,7 +109,7 @@ static int tbs_vidioc_enum_fmt_vid_cap(struct file *file, void *priv_fh,struct v
|
||||
{
|
||||
switch (f->index) {
|
||||
case 0:
|
||||
strlcpy(f->description, "YUV 4:2:2", sizeof(f->description));
|
||||
strscpy(f->description, "YUV 4:2:2", sizeof(f->description));
|
||||
f->pixelformat = V4L2_PIX_FMT_UYVY;
|
||||
break;
|
||||
default:
|
||||
@@ -617,7 +617,7 @@ static int tbs_i2c_init(struct tbs_pcie_dev *dev)
|
||||
i2c_set_adapdata(adap, i2c);
|
||||
|
||||
/* TODO: replace X by I2C adapter number */
|
||||
strlcpy(adap->name, "TBS PCIE I2C Adapter X", sizeof(adap->name));
|
||||
strscpy(adap->name, "TBS PCIE I2C Adapter X", sizeof(adap->name));
|
||||
|
||||
adap->algo = &tbs_i2c_algo;
|
||||
adap->algo_data = dev;
|
||||
|
Reference in New Issue
Block a user