From 8cfa7eac96505dfdee8bc1f23d669c539f39d0f6 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Wed, 6 Feb 2019 16:08:38 +0100 Subject: strncmp byte count fixes --- src/fbuilder/build_seccomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fbuilder/build_seccomp.c') diff --git a/src/fbuilder/build_seccomp.c b/src/fbuilder/build_seccomp.c index fbc0e06f4..b1f41a6c7 100644 --- a/src/fbuilder/build_seccomp.c +++ b/src/fbuilder/build_seccomp.c @@ -131,9 +131,9 @@ static void process_protocol(const char *fname) { inet = 1; else if (strncmp(ptr, "AF_INET6 ", 9) == 0) inet6 = 1; - else if (strncmp(ptr, "AF_NETLINK ", 9) == 0) + else if (strncmp(ptr, "AF_NETLINK ", 11) == 0) netlink = 1; - else if (strncmp(ptr, "AF_PACKET ", 9) == 0) + else if (strncmp(ptr, "AF_PACKET ", 10) == 0) packet = 1; } -- cgit v1.2.3-54-g00ecf