Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
config: use git_config_parse_key() in git_config_parse_parameter()
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index ba6dee37aa36cc7141649deda6407012cd0f2724..aada266f9a85e379ab2d2603b82071be4bb19ded 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];