diff options
Diffstat (limited to 'linux/drivers/media/common/saa7146_fops.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c index b428043bd..709c9b8d9 100644 --- a/linux/drivers/media/common/saa7146_fops.c +++ b/linux/drivers/media/common/saa7146_fops.c @@ -427,7 +427,7 @@ int saa7146_register_device(struct video_device *vid, struct saa7146_dev* dev, c DEB_EE(("dev:%p, name:'%s'\n",dev,name)); *vid = device_template; - strncpy(vid->name, name, 32); + strlcpy(vid->name, name, sizeof(vid->name)); vid->priv = dev; // fixme: -1 should be an insmod parameter *for the extension* (like "video_nr"); |