merge: strncmp byte count fixes

This commit is contained in:
startx2017 2019-05-29 09:19:45 -04:00
parent fa10d297bb
commit e65aea0acd

View file

@ -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;