c: Handle incoming data correctly if multiple packets are received at once

Thanks to remotecontrol.
Update changelog