X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=commit.c;h=d3150d627071316accafb7d9c69b5988050f4a8e;hb=031062dcab034c8380ab4d718f45f64989baf1dc;hp=cbfd6899392e8715b206c96b3b58cbdaf29c77cd;hpb=01ced48994640b7d6fd72289544e766dc9009de7;p=git-core%2Fgit.git diff --git a/commit.c b/commit.c index cbfd68993..d3150d627 100644 --- a/commit.c +++ b/commit.c @@ -223,9 +223,8 @@ int unregister_shallow(const struct object_id *oid) if (pos < 0) return -1; if (pos + 1 < commit_graft_nr) - memmove(commit_graft + pos, commit_graft + pos + 1, - sizeof(struct commit_graft *) - * (commit_graft_nr - pos - 1)); + MOVE_ARRAY(commit_graft + pos, commit_graft + pos + 1, + commit_graft_nr - pos - 1); commit_graft_nr--; return 0; }