summaryrefslogtreecommitdiff
path: root/drivers/media/video/zoran
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-08-08 19:58:52 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 19:18:50 +0400
commitbd0eb12f61fef7f500e374b8d5068e7556f61901 (patch)
treeecc19872949f6db55c3d8f9e2fd845fdd66a349d /drivers/media/video/zoran
parenta35c87c7084f3f4972f3ce5f23cfcb34f95341b1 (diff)
downloadlinux-bd0eb12f61fef7f500e374b8d5068e7556f61901.tar.xz
V4L/DVB (12435): strlcpy() will always null terminate the string.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/zoran')
-rw-r--r--drivers/media/video/zoran/zoran_card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/zoran/zoran_card.c b/drivers/media/video/zoran/zoran_card.c
index 40d07faa4a24..0c4d9b1f8e6f 100644
--- a/drivers/media/video/zoran/zoran_card.c
+++ b/drivers/media/video/zoran/zoran_card.c
@@ -1168,7 +1168,7 @@ zoran_setup_videocodec (struct zoran *zr,
m->type = 0;
m->flags = CODEC_FLAG_ENCODER | CODEC_FLAG_DECODER;
- strncpy(m->name, ZR_DEVNAME(zr), sizeof(m->name));
+ strlcpy(m->name, ZR_DEVNAME(zr), sizeof(m->name));
m->data = zr;
switch (type)