Skip to content

Commit

Permalink
Merge branch 'maint-1.6.5' into maint
Browse files Browse the repository at this point in the history
* maint-1.6.5:
  fix memcpy of overlapping area
  • Loading branch information
Junio C Hamano committed Jan 30, 2010
2 parents 63d04a7 + 65d41d4 commit 3325cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int unregister_shallow(const unsigned char *sha1)
if (pos < 0)
return -1;
if (pos + 1 < commit_graft_nr)
memcpy(commit_graft + pos, commit_graft + pos + 1,
memmove(commit_graft + pos, commit_graft + pos + 1,
sizeof(struct commit_graft *)
* (commit_graft_nr - pos - 1));
commit_graft_nr--;
Expand Down

0 comments on commit 3325cea

Please sign in to comment.