mount_cgroup_controllers: expect 2 items from fscanf()
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ static int mount_cgroup_controllers(void) {
|
||||
char *controller, *where;
|
||||
int enabled = false;
|
||||
|
||||
if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 1) {
|
||||
if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) {
|
||||
|
||||
if (feof(f))
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user