/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use COPY_ARRAY
[git/git.git]
/
builtin
/
mv.c
diff --git
a/builtin/mv.c
b/builtin/mv.c
index
a201426
..
c13e49b
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]);