diff options
| author | 2013-05-22 21:18:50 +0100 | |
|---|---|---|
| committer | 2013-06-06 01:45:04 +0100 | |
| commit | 37d97550b147e0d14f6a9e279f8505b7d49c84bb (patch) | |
| tree | 207d703258746f1bc0902c638e511d60437dfb44 /src/configparser.cpp | |
| parent | Convert User::SendText to use std::string. (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.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); |
