diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-06-05 17:52:39 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-06-05 17:52:39 -0700 |
commit | f00ac52c5d593fcb761fc316b2582bb06158035c (patch) | |
tree | bec88a8a69c4a912606636c9df6283c154962fef /src/configparser.cpp | |
parent | d9d99cd02dadf34bfcc220734ba0c422f0acb3e6 (diff) | |
parent | 5d0b2b7cfccf057e7abab94c41065f94420899cd (diff) |
Merge pull request #544 from SaberUK/master+kill-maxbuf
Purge MAXBUF in favour of a configuration option.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r-- | src/configparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 61cdb55fa..31d314148 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -327,7 +327,7 @@ void ParseStack::DoReadFile(const std::string& key, const std::string& name, int file_cache& cache = FilesOutput[key]; cache.clear(); - char linebuf[MAXBUF*10]; + char linebuf[5120]; while (fgets(linebuf, sizeof(linebuf), file)) { size_t len = strlen(linebuf); |