/
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]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
2a90e37
..
9d3d711
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-931,7
+931,7
@@
static int remove_redundant(struct commit **array, int cnt)
}
/* Now collect the result */
-
memcpy(work, array, sizeof(*array) *
cnt);
+
COPY_ARRAY(work, array,
cnt);
for (i = filled = 0; i < cnt; i++)
if (!redundant[i])
array[filled++] = work[i];