diff options
| author | Mitch Williams <mitch.a.williams@intel.com> | 2018-08-20 08:12:30 -0700 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-08-30 13:53:04 -0700 |
| commit | 7eb74ff891b4e94b8bac48f648a21e4b94ddee64 (patch) | |
| tree | 2c2c0c44388d1bbda96af0f196b51fa2aebb0e11 /scripts/gdb/linux/utils.py | |
| 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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
