diff options
| author | Ben Hutchings <bhutchings@solarflare.com> | 2012-07-03 00:36:59 +0400 |
|---|---|---|
| committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-07-17 19:12:32 +0400 |
| commit | a4ed2d4cd96dd71b0f2e04a88f83abcab6ddd023 (patch) | |
| tree | 3e324f852c1a6d69fb721374f190b4908de1e809 /tools/perf/scripts/python | |
| parent | f7cbb163d980fc79f47a3cba63dd130b1d655d1d (diff) | |
| download | linux-a4ed2d4cd96dd71b0f2e04a88f83abcab6ddd023.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
