Copy the correct number of bytes.