diff options
author | Gerd Knorr <devnull@localhost> | 2004-03-30 10:32:41 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-03-30 10:32:41 +0000 |
commit | 75196ce82923618d968c0ac2cf1b35ddc6b48073 (patch) | |
tree | 70cfb704ce4e47bccb4e185722f8e7853f3daa41 | |
parent | 421854f5bfc558e43a08a1af58314e932451aad1 (diff) | |
download | mediapointer-dvb-s2-75196ce82923618d968c0ac2cf1b35ddc6b48073.tar.gz mediapointer-dvb-s2-75196ce82923618d968c0ac2cf1b35ddc6b48073.tar.bz2 |
- fix buffer overflow in cx8800_i2c_init.
-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; |