Ensuring that proto gets null terminated.