summaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-22 21:18:50 +0100
committerPeter Powell <petpow@saberuk.com>2013-06-06 01:45:04 +0100
commit37d97550b147e0d14f6a9e279f8505b7d49c84bb (patch)
tree207d703258746f1bc0902c638e511d60437dfb44 /src/configparser.cpp
parente01df6385ef2ad1c0a78ccdd08af9af3ce688264 (diff)
Convert a ton of uses of MAXBUF to use a fixed buffer size.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp2
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);