Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-03 23:30:33 +0300
committerJunio C Hamano <gitster@pobox.com>2016-10-03 23:30:33 +0300
commitb1f0a856605981363053941b8210f3cc9389607a (patch)
tree9de4bc7cc285925913c219edd4536985cc0cc256 /builtin/mv.c
parent3ef7618e616e023cf04180e30d77c9fa5310f964 (diff)
parent45ccef87b3cc0ab09ec5fd1186aa0b33298ee8d4 (diff)
Merge branch 'rs/copy-array'
Code cleanup. * rs/copy-array: use COPY_ARRAY add COPY_ARRAY
Diffstat (limited to 'builtin/mv.c')
-rw-r--r--builtin/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mv.c b/builtin/mv.c
index 446a316738e..2f43877bc9a 100644
--- a/builtin/mv.c
+++ b/builtin/mv.c
@@ -26,7 +26,7 @@ static const char **internal_copy_pathspec(const char *prefix,
int i;
const char **result;
ALLOC_ARRAY(result, count + 1);
- memcpy(result, pathspec, count * sizeof(const char *));
+ COPY_ARRAY(result, pathspec, count);
result[count] = NULL;
for (i = 0; i < count; i++) {
int length = strlen(result[i]);