mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Avoid crashing when using many meters (thanks to David Cho for the report)
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user