memmove instead of memcpy for prev commit

Change-Id: I2f50afeeeb1bc98115769b76828de2a03862f520