diff options
author | Andy Walls <awalls@radix.net> | 2009-02-28 11:19:45 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2009-02-28 11:19:45 -0500 |
commit | d0d7f86bddbb6e03debcd8c07cce1d710fd8a870 (patch) | |
tree | dc95e7e37d6775c48dd09e562ba554f11dc056f6 /linux/drivers/media/video/cx18 | |
parent | 49e8c2b4c9396a7d75bde724d497fdddd09f0ab2 (diff) | |
download | mediapointer-dvb-s2-d0d7f86bddbb6e03debcd8c07cce1d710fd8a870.tar.gz mediapointer-dvb-s2-d0d7f86bddbb6e03debcd8c07cce1d710fd8a870.tar.bz2 |
cx18: Use strlcpy() instead of strncpy() for temp eeprom i2c_client setup
From: Andy Walls <awalls@radix.net>
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-driver.c b/linux/drivers/media/video/cx18/cx18-driver.c index 8f294f436..f688ec7db 100644 --- a/linux/drivers/media/video/cx18/cx18-driver.c +++ b/linux/drivers/media/video/cx18/cx18-driver.c @@ -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; |