]> git.karo-electronics.de Git - linux-beck.git/commit
igb: Fix strncpy calls to be safe per source code review tools
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 2 Mar 2011 01:11:26 +0000 (01:11 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Mar 2011 10:48:32 +0000 (02:48 -0800)
commit3b668a77bad7f03c3df28971760a3883a395ce55
tree2400e7e17486fcb2c3a200b63a393ca7183e4149
parent93ed835928f3100c95e0408df0543f35d03f7c23
igb: Fix strncpy calls to be safe per source code review tools

This fix changes the remaining calls to strncpy that have not yet
been changed to use the "sizeof(buf) - 1" syntax rather than just
a number for buffer size.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/igb/igb_ethtool.c