From d0fae1176094f0da46ed21d773fff64284dfa4a8 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 7 Sep 2020 01:04:30 +0100 Subject: [PATCH] config parser: increase possible line length limit let's use POSIX LINE_MAX (usually 4KB) instead of 1KB. closes #226 --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 9dd6da2..27dc951 100644 --- a/src/conf.c +++ b/src/conf.c @@ -397,7 +397,7 @@ static int check_match (struct config_s *conf, const char *line, */ static int config_parse (struct config_s *conf, FILE * f) { - char buffer[1024]; /* 1KB lines should be plenty */ + char buffer[LINE_MAX]; unsigned long lineno = 1; while (fgets (buffer, sizeof (buffer), f)) {