Fix MCCP bug caused by improper buffer management.

Something occurred to me today. I see how this fix addresses the issue of garbled data caused by the overflowing buffer and accessing out of bounds memory. How does this address the client hanging issue though? Corrupted/nonsensical data shouldn't cause the hang.