From 16f6682d0b74f3f1f29ef71aa10d20b36e10b48c Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 22 Nov 2010 11:06:38 +0100 Subject: [PATCH] mount_cgroup_controllers: expect 2 items from fscanf() --- src/mount-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount-setup.c b/src/mount-setup.c index 7eb806e7..7e468e27 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; -- 2.39.5