config: Add NUL terminator check in config_get_entry header line scan

This commit is contained in:
Mintsuki
2026-03-06 06:26:29 +01:00
parent 6db4e3f609
commit 727f2114d2

View File

@@ -642,7 +642,7 @@ static char *config_get_entry(size_t *size, size_t index) {
do {
p++;
} while (*p != '\n');
} while (*p != '\n' && *p != '\0');
ret = p;