Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/cvsserver' into maint-2.10
[gitweb.git]
/
builtin
/
mv.c
diff --git
a/builtin/mv.c
b/builtin/mv.c
index 446a316738e0e739b6a89992879c6e4838f23c8f..2f43877bc9a17c5bef2906a383cc8cdd6f4f5b82 100644
(file)
--- 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]);