fix memcpy of overlapping area
commit65d41d48a4e4e795d64dd7842a44d693b741bf31
authorJeff King <peff@peff.net>
Fri, 29 Jan 2010 10:28:44 +0000 (29 05:28 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jan 2010 17:52:21 +0000 (29 09:52 -0800)
tree3da4b0052c10b5468c83b52dc990801d8cbdc9da
parent35eabd1579726d594e84fc8328a5c87693dd065a
fix memcpy of overlapping area

Caught by valgrind in t5500, but it is pretty obvious from
reading the code that this is shifting elements of an array
to the left, which needs memmove.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c