I know, but I wanted to be more explicit in the code. Otherwise every time
you read this you have to think of the invisible null in after the string.


On Fri, Jun 28, 2013 at 2:02 PM, Martin Hurton <notifications@github.com>wrote:

> In src/curve_client.cpp:
>
> > @@ -138,7 +138,7 @@ int zmq::curve_client_t::encode (msg_t *msg_)
> >
> >      uint8_t *message = static_cast <uint8_t *> (msg_->data ());
> >
> > -    memcpy (message, "MESSAGE ", 8);
> > +    memcpy (message, "MESSAGE\0", 8);
>
> No need for explicit 0 as string literals are zero terminated
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zeromq/libzmq/pull/596/files#r4936996>
> .
>