summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 2f1bd2220..d23ae4c3f 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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] != '/')