aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;