Don't use memcpy on areas that may overlaps

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>