diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-08-08 17:58:52 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 17:18:50 +0200 |
commit | bd0eb12f61fef7f500e374b8d5068e7556f61901 (patch) | |
tree | ecc19872949f6db55c3d8f9e2fd845fdd66a349d /drivers/media/video/pwc/pwc-v4l.c | |
parent | V4L/DVB (12434): em28xx: fix empire auto-detect (diff) | |
download | linux-bd0eb12f61fef7f500e374b8d5068e7556f61901.tar.xz linux-bd0eb12f61fef7f500e374b8d5068e7556f61901.zip |
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/pwc/pwc-v4l.c')
-rw-r--r-- | drivers/media/video/pwc/pwc-v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c index 2876ce084510..bdb4ced57496 100644 --- a/drivers/media/video/pwc/pwc-v4l.c +++ b/drivers/media/video/pwc/pwc-v4l.c @@ -1033,7 +1033,7 @@ long pwc_video_do_ioctl(struct file *file, unsigned int cmd, void *arg) if (std->index != 0) return -EINVAL; std->id = V4L2_STD_UNKNOWN; - strncpy(std->name, "webcam", sizeof(std->name)); + strlcpy(std->name, "webcam", sizeof(std->name)); return 0; } |