]> err.no Git - systemd/commitdiff
util: when reading a line from a file have space for at least 2k chars
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 23:43:25 +0000 (01:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 23:43:25 +0000 (01:43 +0200)
util.c

diff --git a/util.c b/util.c
index a0f26762dc39b87b3f6cb3c24acb50db14849512..69a26a2d08ddecb8aef5a3fa955a4a06377ff820 100644 (file)
--- a/util.c
+++ b/util.c
@@ -412,7 +412,7 @@ finish:
 int read_one_line_file(const char *fn, char **line) {
         FILE *f;
         int r;
-        char t[64], *c;
+        char t[2048], *c;
 
         assert(fn);
         assert(line);