]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
V4L/DVB (8837): dvb: fix I2C adapters name size
authorJean Delvare <khali@linux-fr.org>
Wed, 3 Sep 2008 20:12:23 +0000 (17:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:50 +0000 (18:37 -0300)
commit1d434012f23effdc69d58a88229159b57256f6ba
tree8d713db39a3fcf60cf1a9316aba31cdf3e23e1d8
parentc437d657c59921b048997d5bc1f5733670112902
V4L/DVB (8837): dvb: fix I2C adapters name size

Some DVB drivers are incorrectly assuming that the size of
i2c_adapter.name is I2C_NAME_SIZE.  Here's a fix.

Also change strncpy to strlcpy, as the former is error-prone (and was
indeed incorrectly used.)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Uwe Bugla <uwe.bugla@gmx.de>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/b2c2/flexcop-i2c.c
drivers/media/dvb/frontends/cx24123.c
drivers/media/dvb/frontends/s5h1420.c