Bug fixes when buffer is full.

UCC git Repository :: git.ucc.asn.au