Fix a buffer bug in CDC.