From: Eric Sesterhenn Date: Tue, 6 Jun 2006 14:20:08 +0000 (-0300) Subject: V4L/DVB (4070): Zoran strncpy() fix X-Git-Tag: v2.6.18-rc1~862^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=845f16abad37e2a255ac1c167375f6588502f93f;p=pandora-kernel.git V4L/DVB (4070): Zoran strncpy() fix The zoran driver uses strncpy() in an unsafe way. This patch uses the proper sizeof()-1 size parameter. Since all strncpy() targets are initialised with memset() the trailing '\0' is already set. Where std->name was the target for the strncpy() we overwrote 8 Bytes of the std structure with zeros. Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed