mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Use memmove() in git__joinpath for overlapping copies
Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
545a6915eb
commit
60cb1d10b3
@ -221,7 +221,7 @@ void git__joinpath_n(char *buffer_out, int count, ...)
|
||||
continue;
|
||||
|
||||
len = strlen(path);
|
||||
memcpy(buffer_out, path, len);
|
||||
memmove(buffer_out, path, len);
|
||||
buffer_out = buffer_out + len;
|
||||
|
||||
if (i < count - 1 && buffer_out[-1] != '/')
|
||||
|
Loading…
Reference in New Issue
Block a user