Fix MCCP bug caused by improper buffer management.