When reading a string value from zmq_getsockopt, it includes the terminating NUL character in the size. Which is reasonable since it's advertised as a buffer size. But when zmqpp turns that into a C++ string, the terminating null is inappropriate. This patch removes the terminating NUL.
When reading a string value from zmq_getsockopt, it includes the terminating NUL character in the size. Which is reasonable since it's advertised as a buffer size. But when zmqpp turns that into a C++ string, the terminating null is inappropriate. This patch removes the terminating NUL.