Thomas Faber : usp10: Do not write to last script item if buffer space is insufficient.