aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKevin Paul Reddy Janagari <kevinpaul468@gmail.com>2025-04-11 14:20:10 +0530
committerPaolo Abeni <pabeni@redhat.com>2025-04-15 13:37:14 +0200
commit8c9b406ff470a8346232eec979dc84f518aabfd9 (patch)
tree0f4475ef2f78d4fc2c02c1ea5351569529a0d36b /tools/perf/scripts/python/exported-sql-viewer.py
parentMerge branch 'net-dsa-mt7530-modernize-mib-handling-fix' (diff)
downloadwireguard-linux-8c9b406ff470a8346232eec979dc84f518aabfd9.tar.xz
wireguard-linux-8c9b406ff470a8346232eec979dc84f518aabfd9.zip
tipc: Removing deprecated strncpy()
This patch suggests the replacement of strncpy with strscpy as per Documentation/process/deprecated. The strncpy() fails to guarantee NULL termination, The function adds zero pads which isn't really convenient for short strings as it may cause performance issues. strscpy() is a preferred replacement because it overcomes the limitations of strncpy mentioned above. Compile Tested Signed-off-by: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com> Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech> Tested-by: Tung Nguyen <tung.quang.nguyen@est.tech> Link: https://patch.msgid.link/20250411085010.6249-1-kevinpaul468@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions