diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-08-08 12:58:52 -0300 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-08-08 12:58:52 -0300 |
commit | d029b650929bd8c6cda3c88135a3b754ca6ae0bb (patch) | |
tree | 6f5f58ff139820367100377d61918bd916ff1e48 /linux/drivers/media/video/zoran/zoran_card.c | |
parent | 672911c86336621bf8d82bb070c84d7082e53a05 (diff) | |
download | mediapointer-dvb-s2-d029b650929bd8c6cda3c88135a3b754ca6ae0bb.tar.gz mediapointer-dvb-s2-d029b650929bd8c6cda3c88135a3b754ca6ae0bb.tar.bz2 |
strlcpy() will always null terminate the string.
From: Roel Kluin <roel.kluin@gmail.com>
Priority: normal
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>
Diffstat (limited to 'linux/drivers/media/video/zoran/zoran_card.c')
-rw-r--r-- | linux/drivers/media/video/zoran/zoran_card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zoran/zoran_card.c b/linux/drivers/media/video/zoran/zoran_card.c index 217fec9e4..375f158fd 100644 --- a/linux/drivers/media/video/zoran/zoran_card.c +++ b/linux/drivers/media/video/zoran/zoran_card.c @@ -1169,7 +1169,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) |