summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-11-26 22:06:25 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-11-26 22:06:25 +0000
commit807df03671daa6d77b445c26f050381d231947ac (patch)
tree7b9ad4f38f384be8517a6cfa2ea1463c262bde74 /Settings.c
parentbd0f30dcd6c008f52fb0a6e231f64c0ba5cdd6dc (diff)
Avoid crashing when using many meters (thanks to David Cho for the report)
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Settings.c b/Settings.c
index e53358c4..a8ddc456 100644
--- a/Settings.c
+++ b/Settings.c
@@ -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)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy