commit | 7eb74ff891b4e94b8bac48f648a21e4b94ddee64 | [log] [tgz] |
---|---|---|
author | Mitch Williams <mitch.a.williams@intel.com> | Mon Aug 20 08:12:30 2018 -0700 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Thu Aug 30 13:53:04 2018 -0700 |
tree | 2c2c0c44388d1bbda96af0f196b51fa2aebb0e11 | |
parent | 3c818910911c93bb5099c6637ec350f90c0e71fc [diff] |
i40e: use correct length for strncpy Caught by GCC 8. When we provide a length for strncpy, we should not include the terminating null. So we must tell it one less than the size of the destination buffer. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>