summaryrefslogtreecommitdiff
path: root/include/linux/avf/virtchnl.h
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2018-08-20 08:12:30 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-08-30 13:53:04 -0700
commit7eb74ff891b4e94b8bac48f648a21e4b94ddee64 (patch)
tree2c2c0c44388d1bbda96af0f196b51fa2aebb0e11 /include/linux/avf/virtchnl.h
parent3c818910911c93bb5099c6637ec350f90c0e71fc (diff)
downloadlinux-7eb74ff891b4e94b8bac48f648a21e4b94ddee64.tar.gz
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>
Diffstat (limited to 'include/linux/avf/virtchnl.h')
0 files changed, 0 insertions, 0 deletions