Use memcpy to save data before computing SQSH checksum

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>