diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-11-22 11:06:38 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-11-22 11:06:38 +0100 |
commit | 16f6682d0b74f3f1f29ef71aa10d20b36e10b48c (patch) | |
tree | 373c31fe2b5759c83e3dce6340a625e42b1ed571 | |
parent | 6bd212771129d00cf7b42d6774a6b81547569384 (diff) |
mount_cgroup_controllers: expect 2 items from fscanf()
-rw-r--r-- | src/mount-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c index 7eb806e7fd..7e468e2728 100644 --- a/src/mount-setup.c +++ b/src/mount-setup.c @@ -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; |