summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Bridges <icb@fastmail.org>2026-06-26 17:25:35 -0500
committerFlorian Westphal <fw@strlen.de>2026-07-02 12:17:14 +0200
commit9cc4d9720d70f391dca52a07e72652f1693a6239 (patch)
tree71027c37294d6f237bc8efef115af5561d0d97ce /tools/perf/scripts/python
parentb010e2a4a9ac2bcd0db2c3a41877d59d827a8a80 (diff)
netfilter: x_tables: replace strlcat() with snprintf()
In preparation for removing the deprecated strlcat() API[1], replace the strscpy()/strlcat() pairs in xt_proto_init() and xt_proto_fini() with snprintf(), which builds each /proc file name in a single call. Each name is "<prefix><suffix>", where <prefix> is the address-family string xt_prefix[af] and <suffix> is one of the FORMAT_TABLES, FORMAT_MATCHES or FORMAT_TARGETS literals. Prepend %s to the FORMAT macros and switch to snprintf(). Link: https://github.com/KSPP/linux/issues/370 [1] Signed-off-by: Ian Bridges <icb@fastmail.org> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions