diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-11 14:18:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-11 14:18:32 -0700 |
commit | a813b19190a75e44b6ebd1ea5317ef5ed914cde0 (patch) | |
tree | 57781b3d45acf013b4e1b506ad324572f0c82e42 /builtin | |
parent | Merge branch 'dt/mailinfo' into maint (diff) | |
parent | use COPY_ARRAY (diff) | |
download | tgif-a813b19190a75e44b6ebd1ea5317ef5ed914cde0.tar.xz |
Merge branch 'rs/copy-array' into maint
Code cleanup.
* rs/copy-array:
use COPY_ARRAY
add COPY_ARRAY
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mv.c b/builtin/mv.c index 446a316738..2f43877bc9 100644 --- a/builtin/mv.c +++ b/builtin/mv.c @@ -26,7 +26,7 @@ static const char **internal_copy_pathspec(const char *prefix, int i; const char **result; ALLOC_ARRAY(result, count + 1); - memcpy(result, pathspec, count * sizeof(const char *)); + COPY_ARRAY(result, pathspec, count); result[count] = NULL; for (i = 0; i < count; i++) { int length = strlen(result[i]); |