Commit 60cb1d10 by Vicent Marti

Use memmove() in git__joinpath for overlapping copies

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 545a6915
......@@ -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] != '/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment