diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2020-12-04 00:54:39 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-04 03:07:05 +0100 |
commit | 3015b500ae42356936b9b4a8b660eacaee7a6147 (patch) | |
tree | 65180d871a42736984449c4b5651c73fc9e82eed /crypto/keywrap.c | |
parent | Merge branch 'Support BTF-powered BPF tracing programs for kernel modules' (diff) | |
download | linux-3015b500ae42356936b9b4a8b660eacaee7a6147.tar.xz linux-3015b500ae42356936b9b4a8b660eacaee7a6147.zip |
libbpf: Use memcpy instead of strncpy to please GCC
Some versions of GCC are really nit-picky about strncpy() use. Use memcpy(),
as they are pretty much equivalent for the case of fixed length strings.
Fixes: e459f49b4394 ("libbpf: Separate XDP program load with xsk socket creation")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201203235440.2302137-1-andrii@kernel.org
Diffstat (limited to 'crypto/keywrap.c')
0 files changed, 0 insertions, 0 deletions