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/faudit/seccomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/faudit') diff --git a/src/faudit/seccomp.c b/src/faudit/seccomp.c index 85a883618..5d4ddb329 100644 --- a/src/faudit/seccomp.c +++ b/src/faudit/seccomp.c @@ -27,8 +27,8 @@ static int extract_seccomp(int *val) { char buf[MAXBUF]; while (fgets(buf, MAXBUF, fp)) { - if (strncmp(buf, "Seccomp:\t", 8) == 0) { - char *ptr = buf + 8; + if (strncmp(buf, "Seccomp:\t", 9) == 0) { + char *ptr = buf + 9; int tmp; sscanf(ptr, "%d", &tmp); *val = tmp; -- cgit v1.2.3-70-g09d2