aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-07-02 02:58:56 -0400
committerDeterminant <[email protected]>2019-07-02 02:58:56 -0400
commitce842602ccac8c10d025a055c966bc32f204f75c (patch)
tree2d653dad296686386875d6806cf3b625613cdef6
parent12c0f971eef91ea04a3a2cfe1c0733924be6963a (diff)
increase the conf line buffer limit
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
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 */