summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2018-08-20 08:12:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-25 15:53:47 +0100
commit4e86098dbd1b87722206f68a60273f465237b1a4 (patch)
tree4f1020b89aaf819c8ebf06516e86b09819e6d181 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent420cb453d1b65e809a660e35c538e87a6ac1bdd7 (diff)
i40e: use correct length for strncpy
[ Upstream commit 7eb74ff891b4e94b8bac48f648a21e4b94ddee64 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions