aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorMitch Williams <[email protected]>2018-08-20 08:12:30 -0700
committerJeff Kirsher <[email protected]>2018-08-30 13:53:04 -0700
commit7eb74ff891b4e94b8bac48f648a21e4b94ddee64 (patch)
tree2c2c0c44388d1bbda96af0f196b51fa2aebb0e11 /tools/perf/scripts/python/stat-cpi.py
parent3c818910911c93bb5099c6637ec350f90c0e71fc (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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions