chiark / gitweb /
don't make up buffer sizes, use standard LINE_MAX instead
[elogind.git] / src / unit.c
index 32071f21701c369b4df6bdaf793a7465704ea427..37a7c07ae8f0eb75b5ca2b57c9052fb450f84d0e 100644 (file)
@@ -2152,7 +2152,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
                 return 0;
 
         for (;;) {
-                char line[1024], *l, *v;
+                char line[LINE_MAX], *l, *v;
                 size_t k;
 
                 if (!fgets(line, sizeof(line), f)) {