Fixed the way the SCAST buffer is truncated.