Messages in this thread | | | Date | Mon, 28 Jul 2014 08:39:35 -0700 | From | Stephen Hemminger <> | Subject | Re: [PATCH] net: ethernet: intel: ixgbe: ixgbe_main.c: Cleaning up missing null-terminate in conjunction with strncpy |
| |
On Sat, 26 Jul 2014 16:24:36 +0200 Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> wrote:
> Replacing strncpy with strlcpy to avoid strings that lacks null terminate. > > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> > --- hw->mac.type, hw->phy.type, hw->phy.sfp_type,
This patch doesn't change anything. Netdev is already zeroed when allocated therefore doing strncpy() guarantees it will be null terminated.
| |