Fix memmove and memcpy
authorJon Medhurst <tixy@linaro.org>
Wed, 15 Jan 2014 18:22:34 +0000 (18:22 +0000)
committerDan Handley <dan.handley@arm.com>
Thu, 30 Jan 2014 17:55:31 +0000 (17:55 +0000)
commitc3810c83aa9158e8903e23b51616f7d7faaa63bc
tree43f72a46a19f54ded3d0650a668681620a4d5ad0
parent36eaaf37690c1019c99335e708361b5a613101db
Fix memmove and memcpy

memmove needs to allow for overlapping memory regions and, together
with memcpy, should return the input destination pointer, not the
address after the end of the copied data.

fixes ARM-software/tf-issues#18

Signed-off-by: Jon Medhurst <tixy@linaro.org>
lib/stdlib/mem.c