Fixed overlapping calls to strlcpy

This commit is contained in:
Stefan Ritt 2014-07-31 16:51:42 +02:00
parent c9717d4c6d
commit 7aa5378983

View File

@ -12080,7 +12080,7 @@ void load_config_section(char *section, char **buffer, char *error)
while (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r') while (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r')
p++; p++;
} }
strlcpy(*buffer, p, length); memmove(*buffer, p, length);
if ((p = (char *) find_next_section(*buffer + 1)) != NULL) { if ((p = (char *) find_next_section(*buffer + 1)) != NULL) {
*p = 0; *p = 0;