aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2019-05-29 09:19:45 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2019-05-29 09:19:45 -0400
commite65aea0acd60ef18dfc2d01cc2f5b0d3e574c1fb (patch)
treef6b1f244839b1f03fded8def2b8dfc61cb344465
parentmerge: disallow zero seconds timeout (diff)
downloadfirejail-e65aea0acd60ef18dfc2d01cc2f5b0d3e574c1fb.tar.gz
firejail-e65aea0acd60ef18dfc2d01cc2f5b0d3e574c1fb.tar.zst
firejail-e65aea0acd60ef18dfc2d01cc2f5b0d3e574c1fb.zip
merge: strncmp byte count fixes
-rw-r--r--src/firejail/profile.c2
1 files changed, 1 insertions, 1 deletions
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) {
719 } 719 }
720 720
721 // nice value 721 // nice value
722 if (strncmp(ptr, "nice ", 4) == 0) { 722 if (strncmp(ptr, "nice ", 5) == 0) {
723 cfg.nice = atoi(ptr + 5); 723 cfg.nice = atoi(ptr + 5);
724 if (getuid() != 0 &&cfg.nice < 0) 724 if (getuid() != 0 &&cfg.nice < 0)
725 cfg.nice = 0; 725 cfg.nice = 0;