]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Replace snprintf("%s") with strscpy
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 1 Feb 2026 21:52:48 +0000 (22:52 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Feb 2026 02:43:33 +0000 (18:43 -0800)
commitd95d76aa772bf94df353b015b1cb38303d4a415d
treee4b116860924e31b494ca7b839e0f0e13e3efca3
parent6b95cc562de2889a9333843dda073ba875f9e808
bpf: Replace snprintf("%s") with strscpy

Replace snprintf("%s") with the faster and more direct strscpy().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20260201215247.677121-2-thorsten.blum@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c