mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed overlapping calls to strlcpy
This commit is contained in:
parent
c9717d4c6d
commit
7aa5378983
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user