Fix config entry parsing issue

This commit is contained in:
mintsuki 2020-05-27 09:24:59 +02:00
parent ef122f652d
commit bb642c1970
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -35,7 +35,7 @@ int config_get_entry_name(char *ret, size_t index, size_t limit) {
p++;
}
p++;
if (*(p - 2) != '\n')
if ((p - 1) != config_addr && *(p - 2) != '\n')
i--;
}
@ -60,7 +60,7 @@ int config_set_entry(size_t index) {
p++;
}
p++;
if (*(p - 2) != '\n')
if ((p - 1) != config_addr && *(p - 2) != '\n')
i--;
}