diff options
| author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-13 11:15:24 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-13 11:15:24 -0300 |
| commit | e916f4cd0bb1f1815fcb5b617fa59ac57b4e7eb5 (patch) | |
| tree | 2b27075dc737563fb0f86cbd1b7a79fa341fc6cc /linux/drivers/media/dvb/dvb-usb | |
| parent | 2459bf3000c7be8c5b73d2495df998039f400b00 (diff) | |
| download | mediapointer-dvb-s2-e916f4cd0bb1f1815fcb5b617fa59ac57b4e7eb5.tar.gz mediapointer-dvb-s2-e916f4cd0bb1f1815fcb5b617fa59ac57b4e7eb5.tar.bz2 | |
Backport several i2c cleanups from mainstream
From: Mauro Carvalho Chehab <mchehab@infradead.org>
backport commit 2096b956d24c4b5950b808fc23b218425d79ebb1 from David
Brownell <david-b@pacbell.net>
Maybe I've merged also other i2c cleanups here that happened on Kernel.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
| -rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c index e4d67534a..4c80823d8 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c @@ -19,7 +19,7 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d) return -EINVAL; } - strncpy(d->i2c_adap.name,d->desc->name,I2C_NAME_SIZE); + strncpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); #ifdef I2C_ADAP_CLASS_TV_DIGITAL d->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL, #else |
