Avoid crashing when using many meters (thanks to David Cho for the report)

This commit is contained in:
Hisham Muhammad
2007-11-26 22:06:25 +00:00
parent bd0f30dcd6
commit 807df03671
3 changed files with 8 additions and 1 deletions

View File

@ -96,7 +96,7 @@ bool Settings_read(Settings* this, char* fileName) {
if (fd == NULL) {
return false;
}
const int maxLine = 512;
const int maxLine = 65535;
char buffer[maxLine];
bool readMeters = false;
while (!feof(fd)) {