diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-07 01:04:30 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-07 01:07:00 +0100 |
commit | d0fae1176094f0da46ed21d773fff64284dfa4a8 (patch) | |
tree | ec0f27680ae597eec2640bc1ac8a07faf1470a92 /src | |
parent | 7c37a61e00851b3cd8f563007a69b43a2941e472 (diff) |
config parser: increase possible line length limit
let's use POSIX LINE_MAX (usually 4KB) instead of 1KB.
closes #226
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |