Fix bug related to SD buffering.
When copying data to the duplicated wrap region of the buffer, only
copy the data that was actually received, not the entire wrap region.
Otherwise we could corrupt previous data which was modified by
GcodeParser as it was parsed.