Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mm/send-email-cc-cruft-after-address'
[gitweb.git]
/
pathspec.c
diff --git
a/pathspec.c
b/pathspec.c
index eda13b54c7dc5003049136cf50dd63a21db02fa1..86f2b449b1b43d7abb0917c07676304a666056a9 100644
(file)
--- a/
pathspec.c
+++ b/
pathspec.c
@@
-484,8
+484,7
@@
void copy_pathspec(struct pathspec *dst, const struct pathspec *src)
{
*dst = *src;
ALLOC_ARRAY(dst->items, dst->nr);
- memcpy(dst->items, src->items,
- sizeof(struct pathspec_item) * dst->nr);
+ COPY_ARRAY(dst->items, src->items, dst->nr);
}
void clear_pathspec(struct pathspec *pathspec)