Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use COPY_ARRAY
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 2a90e37519f0b6e9de6e30ed57afe91822441ca3..9d3d7119e065af27aac5516251d05018a8393f67 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];