diff options
Diffstat (limited to 'linux/drivers/media/video/cx88')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-i2c.c b/linux/drivers/media/video/cx88/cx88-i2c.c index 8bbf4bef5..c993b3ff7 100644 --- a/linux/drivers/media/video/cx88/cx88-i2c.c +++ b/linux/drivers/media/video/cx88/cx88-i2c.c @@ -154,7 +154,7 @@ int __devinit cx8800_i2c_init(struct cx8800_dev *dev) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,54) dev->i2c_adap.dev.parent = &dev->pci->dev; #endif - strcpy(dev->i2c_adap.name,dev->name); + strlcpy(dev->i2c_adap.name,dev->name,sizeof(dev->i2c_adap.name)); dev->i2c_algo.data = dev; i2c_set_adapdata(&dev->i2c_adap,dev); dev->i2c_adap.algo_data = &dev->i2c_algo; |