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: NJean Delvare <khali@linux-fr.org> Acked-by: NUwe Bugla <uwe.bugla@gmx.de> Reviewed-by: NMichael Krufky <mkrufky@linuxtv.org> Signed-off-by: NSteven Toth <stoth@hauppauge.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
Showing
想要评论请 注册 或 登录