ixgbe: Change some uses of strncpy to strlcpy
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 6 Jun 2014 01:57:06 +0000 (01:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Jul 2014 09:16:32 +0000 (02:16 -0700)
commit339de30f5b40b08574a8ca53670d795f7dd1f8bb
treebb683194e031f5ee208b7a8f47d5cd5eb9f2bd78
parent508a8c9e264e1057f663e578c47c5ffa00adb160
ixgbe: Change some uses of strncpy to strlcpy

Change some uses of strncpy to use the more appropriate strlcpy
when clearing is not needed to prevent information leakage. Also
change some length arguments to use the preferred sizeof form.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c