mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
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>
This commit is contained in:
parent
f7cbb163d9
commit
a4ed2d4cd9
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue