diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-26 07:51:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-29 17:41:34 -0400 |
commit | cebfadff4a5c877c524ae6014613edab9f50a2a9 (patch) | |
tree | f6cf91e323d4d9a90ba60868aceaf601796ff8e6 /drivers/media/video/ivtv/ivtv-i2c.c | |
parent | ecfcc83b8d6ff8ac65b072b309a1774ca52d955e (diff) |
V4L/DVB (7756): ivtv: use strlcpy instead of strcpy
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-i2c.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c index 9824eafee021..771adf47e944 100644 --- a/drivers/media/video/ivtv/ivtv-i2c.c +++ b/drivers/media/video/ivtv/ivtv-i2c.c | |||
@@ -167,7 +167,8 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx) | |||
167 | return -1; | 167 | return -1; |
168 | id = hw_driverids[idx]; | 168 | id = hw_driverids[idx]; |
169 | memset(&info, 0, sizeof(info)); | 169 | memset(&info, 0, sizeof(info)); |
170 | strcpy(info.driver_name, hw_drivernames[idx]); | 170 | strlcpy(info.driver_name, hw_drivernames[idx], |
171 | sizeof(info.driver_name)); | ||
171 | info.addr = hw_addrs[idx]; | 172 | info.addr = hw_addrs[idx]; |
172 | for (i = 0; itv->i2c_clients[i] && i < I2C_CLIENTS_MAX; i++) {} | 173 | for (i = 0; itv->i2c_clients[i] && i < I2C_CLIENTS_MAX; i++) {} |
173 | 174 | ||