Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a4ed2d4c authored by Ben Hutchings's avatar Ben Hutchings
Browse files

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: default avatarBen Hutchings <bhutchings@solarflare.com>
parent f7cbb163
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment