diff options
author | Andy Walls <awalls@radix.net> | 2009-02-28 11:19:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:09 -0400 |
commit | 098003d8e21c490c104b543918dea12b7608a173 (patch) | |
tree | 5e1ba24ae9ae209205470416081a4d6ba6901a07 /drivers | |
parent | e276f7b5f9c41536f22bec1d8205e6b201300743 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 0d24e2297457..210c68aaae00 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -273,8 +273,7 @@ void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) | |||
273 | u8 eedata[256]; | 273 | u8 eedata[256]; |
274 | 274 | ||
275 | memset(&c, 0, sizeof(c)); | 275 | memset(&c, 0, sizeof(c)); |
276 | strncpy(c.name, "cx18 tveeprom tmp", sizeof(c.name)); | 276 | strlcpy(c.name, "cx18 tveeprom tmp", sizeof(c.name)); |
277 | c.name[sizeof(c.name)-1] = '\0'; | ||
278 | c.adapter = &cx->i2c_adap[0]; | 277 | c.adapter = &cx->i2c_adap[0]; |
279 | c.addr = 0xA0 >> 1; | 278 | c.addr = 0xA0 >> 1; |
280 | 279 | ||