Fixed buffercopy in SerialIn