[zeromq-dev] Ruby zmq.send error
Conrad Steenberg
conrad.steenberg at gmail.com
Fri Jul 31 18:29:54 CEST 2009
On Fri, 2009-07-31 at 11:07 +0200, Martin Sustrik wrote:
> Hi Conrad,
>
> > The RSTRING() macro also checks for zeroes in the string, and throws the
> > same error.
>
> Hm. Looking at Ruby 1.8 header files (linux):
>
> #define R_CAST(st) (struct st*)
> #define RSTRING(obj) (R_CAST(RString)(obj))
>
> So RSTRING(x)->ptr should translate into ((struct RString*)(x))->ptr.
>
> There's no checking for zeroes there...
>
> How does the thing look like on your box?
It looks the same here.
As a check could you try and send() a string containing zeroes with your
patch?
Conrad
>
> Martin
>
More information about the zeromq-dev
mailing list