From 37d97550b147e0d14f6a9e279f8505b7d49c84bb Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 22 May 2013 21:18:50 +0100 Subject: Convert a ton of uses of MAXBUF to use a fixed buffer size. --- src/configparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configparser.cpp') 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); -- cgit v1.2.3