From: Changli Gao Date: Tue, 24 Aug 2010 13:32:58 +0000 (+0000) Subject: net: use scnprintf() to avoid potential buffer overflow X-Git-Tag: v2.6.37-rc1~147^2~652 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53f91dc1f76922375ad7957ef29f48986722532d;p=pandora-kernel.git net: use scnprintf() to avoid potential buffer overflow strlcpy() returns the total length of the string they tried to create, so we should not use its return value without any check. scnprintf() returns the number of characters written into @buf not including the trailing '\0', so use it instead here. Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- Reading git-diff-tree failed