chiark / gitweb /
don't make up buffer sizes, use standard LINE_MAX instead
[elogind.git] / src / mount-setup.c
index 9bc8946dba8e29a8f8efac0436914883ea25faa3..4fa8ae5fba5873506c35332b5af0ef47f72666b2 100644 (file)
@@ -134,7 +134,7 @@ static int mount_one(const MountPoint *p) {
 static int mount_cgroup_controllers(void) {
         int r;
         FILE *f;
-        char buf [256];
+        char buf[LINE_MAX];
 
         /* Mount all available cgroup controllers that are built into the kernel. */