mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 23:23:18 +00:00
V4L/DVB (10850): cx18: Use strlcpy() instead of strncpy() for temp eeprom i2c_client setup
Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
e276f7b5f9
commit
098003d8e2
1 changed files with 1 additions and 2 deletions
|
@ -273,8 +273,7 @@ void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv)
|
|||
u8 eedata[256];
|
||||
|
||||
memset(&c, 0, sizeof(c));
|
||||
strncpy(c.name, "cx18 tveeprom tmp", sizeof(c.name));
|
||||
c.name[sizeof(c.name)-1] = '\0';
|
||||
strlcpy(c.name, "cx18 tveeprom tmp", sizeof(c.name));
|
||||
c.adapter = &cx->i2c_adap[0];
|
||||
c.addr = 0xA0 >> 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue