]> git.baikalelectronics.ru Git - kernel.git/commit
[media] go7007: using strlcpy instead of strncpy
authorChen Gang <gang.chen@asianux.com>
Mon, 25 Mar 2013 09:56:35 +0000 (06:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 11:12:54 +0000 (08:12 -0300)
commit6ac3993b31e0cf26d96195bda82226e9c6072041
tree3a40c6ff5c00b9985f8963ae59bbc591d5ad91fb
parente3f40a0d0cff4abed472345387b49b9b8d2069ec
[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>
drivers/staging/media/go7007/saa7134-go7007.c