libbpf: fix another GCC8 warning for strncpy
authorAndrii Nakryiko <andriin@fb.com>
Tue, 16 Jul 2019 03:57:03 +0000 (20:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:51 +0000 (09:12 +0200)
commitae01e55f53c3bfa6d4c4924958742f3837cadeaf
tree6f5a88b00e0db7e7273fd12f573b2adc50c2ee3f
parent9a3aaff71f74d319fa1ba2bf8316a4558f841ab3
libbpf: fix another GCC8 warning for strncpy

[ Upstream commit 763ff0e7d9c72e7094b31e7fb84a859be9325635 ]

Similar issue was fixed in cdfc7f888c2a ("libbpf: fix GCC8 warning for
strncpy") already. This one was missed. Fixing now.

Cc: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/xsk.c