commit | a4ed2d4cd96dd71b0f2e04a88f83abcab6ddd023 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Mon Jul 02 21:36:59 2012 +0100 |
committer | Ben Hutchings <bhutchings@solarflare.com> | Tue Jul 17 16:12:32 2012 +0100 |
tree | 3e324f852c1a6d69fb721374f190b4908de1e809 | |
parent | f7cbb163d980fc79f47a3cba63dd130b1d655d1d [diff] |
sfc: Use strlcpy() to copy ethtool stats names 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>