mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
minor tweaks by David Weber
This commit is contained in:
@ -63,12 +63,10 @@ static bool Settings_read(Settings* this, char* fileName) {
|
||||
if (fd == NULL) {
|
||||
return false;
|
||||
}
|
||||
const int maxLine = 65535;
|
||||
const int maxLine = 2048;
|
||||
char buffer[maxLine];
|
||||
bool readMeters = false;
|
||||
while (!feof(fd)) {
|
||||
buffer[0] = '\0';
|
||||
fgets(buffer, maxLine, fd);
|
||||
while (fgets(buffer, maxLine, fd)) {
|
||||
char** option = String_split(buffer, '=');
|
||||
if (String_eq(option[0], "fields")) {
|
||||
char* trim = String_trim(option[1]);
|
||||
|
Reference in New Issue
Block a user