From e65aea0acd60ef18dfc2d01cc2f5b0d3e574c1fb Mon Sep 17 00:00:00 2001 From: startx2017 Date: Wed, 29 May 2019 09:19:45 -0400 Subject: merge: strncmp byte count fixes --- src/firejail/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 72c314aad..cf5c46de4 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c @@ -719,7 +719,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { } // nice value - if (strncmp(ptr, "nice ", 4) == 0) { + if (strncmp(ptr, "nice ", 5) == 0) { cfg.nice = atoi(ptr + 5); if (getuid() != 0 &&cfg.nice < 0) cfg.nice = 0; -- cgit v1.2.3-54-g00ecf