From ce842602ccac8c10d025a055c966bc32f204f75c Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 2 Jul 2019 02:58:56 -0400 Subject: increase the conf line buffer limit --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util.cpp b/src/util.cpp index 0fb990e..e88157c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -260,7 +260,7 @@ void Config::update(const std::string &optname, const char *optval) { } bool Config::load(const std::string &fname) { - static const size_t BUFF_SIZE = 1024; + static const size_t BUFF_SIZE = 65536; FILE *conf_f = fopen(fname.c_str(), "r"); char buff[BUFF_SIZE]; /* load configuration from file */ -- cgit v1.2.3