Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
apply: check git diffs for missing old filenames
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 8eb17075f7866db21b4a2e047bed80565a37be72..856fd4aeeff654c45ba0a6149f9db2c22806e0cb 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];