Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'dp/autoconf-curl-ssl' into maint
[gitweb.git]
/
pack-revindex.c
diff --git
a/pack-revindex.c
b/pack-revindex.c
index 96d51c3467b9ef864f62962aa3567247338d2c3a..6bc7c940335cdf2d31cb38c2db6f8f6c985d3c3b 100644
(file)
--- a/
pack-revindex.c
+++ b/
pack-revindex.c
@@
-107,7
+107,7
@@
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
* we have to move it back from the temporary storage.
*/
if (from != entries)
-
memcpy(entries, tmp, n * sizeof(*entries)
);
+
COPY_ARRAY(entries, tmp, n
);
free(tmp);
free(pos);