memcpy: Avoids copying of src equals dst