memcpy size bug fixed.