diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2007-11-26 22:06:25 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2007-11-26 22:06:25 +0000 |
commit | 807df03671daa6d77b445c26f050381d231947ac (patch) | |
tree | 7b9ad4f38f384be8517a6cfa2ea1463c262bde74 /Settings.c | |
parent | bd0f30dcd6c008f52fb0a6e231f64c0ba5cdd6dc (diff) |
Avoid crashing when using many meters (thanks to David Cho for the report)
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |