aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPatryk Małek <[email protected]>2018-10-30 10:50:44 -0700
committerJeff Kirsher <[email protected]>2018-11-14 10:56:33 -0800
commit4ff2d8540321324e04c1306f85d4fe68a0c2d0ae (patch)
tree25110bedbdfda860f90169367d42080e104aa5ad /tools/perf/scripts/python/export-to-postgresql.py
parentde10933e37039e1b9d67a3d21d4e0a14c734eaac (diff)
i40e: Replace strncpy with strlcpy to ensure null termination
Using strncpy allows destination buffer to be not null terminated after the copying takes place. strlcpy ensures that's not the case by explicitly setting last element in the buffer as '\0'. Signed-off-by: Patryk Małek <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions