summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 14:07:30 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 14:07:30 -0200
commitea41704cd7a8a8c5e40946ddc0f0f26981668177 (patch)
treedcf20c70034e2a03b3f630a5d413fd59df68d75f /linux
parentea9b10fde47b18f2fdf02022ac1d8243946a7397 (diff)
downloadmediapointer-dvb-s2-ea41704cd7a8a8c5e40946ddc0f0f26981668177.tar.gz
mediapointer-dvb-s2-ea41704cd7a8a8c5e40946ddc0f0f26981668177.tar.bz2
tvaudio: Make sure that we don't overflow name buffer
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/tvaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tvaudio.c b/linux/drivers/media/video/tvaudio.c
index b8978efa4..a751cd40a 100644
--- a/linux/drivers/media/video/tvaudio.c
+++ b/linux/drivers/media/video/tvaudio.c
@@ -1502,7 +1502,7 @@ static int chip_probe(struct i2c_client *client, const struct i2c_device_id *id)
/* fill required data structures */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
- strcpy(client->name, desc->name);
+ strlcpy(client->name, desc->name, I2C_NAME_SIZE);
#else
if (!id)
strlcpy(client->name, desc->name, I2C_NAME_SIZE);