aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-03-25 06:56:35 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-25 08:12:54 -0300
commit136d9f3a41bc528773430f2723cf27963bbd6fbc (patch)
tree3a40c6ff5c00b9985f8963ae59bbc591d5ad91fb /drivers/staging/media
parent70f31c91e12c504b86ce67b2f92d11a19d1e262a (diff)
downloadvexpress-lsk-136d9f3a41bc528773430f2723cf27963bbd6fbc.tar.gz
[media] go7007: using strlcpy instead of strncpy
For NUL terminated string, need always set '\0' in the end. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/go7007/saa7134-go7007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/go7007/saa7134-go7007.c b/drivers/staging/media/go7007/saa7134-go7007.c
index d35d5c2ea1c..d80b235d72e 100644
--- a/drivers/staging/media/go7007/saa7134-go7007.c
+++ b/drivers/staging/media/go7007/saa7134-go7007.c
@@ -466,7 +466,7 @@ static int saa7134_go7007_init(struct saa7134_dev *dev)
go->board_id = GO7007_BOARDID_PCI_VOYAGER;
snprintf(go->bus_info, sizeof(go->bus_info), "PCI:%s", pci_name(dev->pci));
- strncpy(go->name, saa7134_boards[dev->board].name, sizeof(go->name));
+ strlcpy(go->name, saa7134_boards[dev->board].name, sizeof(go->name));
go->hpi_ops = &saa7134_go7007_hpi_ops;
go->hpi_context = saa;
saa->dev = dev;