config parser: increase possible line length limit

let's use POSIX LINE_MAX (usually 4KB) instead of 1KB.

closes #226
This commit is contained in:
rofl0r 2020-09-07 01:04:30 +01:00
parent 7c37a61e00
commit d0fae11760

View File

@ -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)) {