summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-07 18:48:50 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-07 18:48:50 +0200
commit20c03b7be2c87ef54533db849fd046d7014c36b4 (patch)
tree3fedf87ba7ae3bda4ba6649cd84095c884d88322 /src/unit.c
parentf68319bbb8e95e6afa5793834668b5c094616249 (diff)
don't make up buffer sizes, use standard LINE_MAX instead
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c
index 32071f2170..37a7c07ae8 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -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)) {