diff options
Diffstat (limited to 'pathspec.c')
-rw-r--r-- | pathspec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pathspec.c b/pathspec.c index eda13b54c7..86f2b449b1 100644 --- 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) |