Fix out of range substr(): the next message may start at <info.waitingSize> instead of <info.waitingSize>+1. This usually worked because of appending a newline to the message, but was still a violation of the protocol.