sfc: Use strlcpy() to copy ethtool stats names
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 2 Jul 2012 20:36:59 +0000 (21:36 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 17 Jul 2012 15:12:32 +0000 (16:12 +0100)
Fix CID 113703 in the Coverity report on Linux.

ethtool stats names are limited to 32 bytes including a null
terminator.  Use strlcpy() to ensure that we will always include the
null terminator even if a source string becomes longer than this.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>

No differences found