]> git.proxmox.com Git - mirror_iproute2.git/commit
bpf: avoid compiler warnings about strncpy
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 19 Mar 2018 23:36:39 +0000 (16:36 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 29 Mar 2018 15:32:48 +0000 (08:32 -0700)
commit08a93b32f50cbd3faa94e2121a518c0105afc1e5
tree365fdf222263fe4313b61609a29362bd0eac09cc
parentda8034a01904b7f8ed5a96624d06f56b8d3e4afd
bpf: avoid compiler warnings about strncpy

Use strlcpy to avoid cases where sizeof(buf) == strlen(buf)

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
lib/bpf.c