[Xcb] zeroing out
Jeremy A. Kolb
jkolb at brandeis.edu
Fri Dec 30 19:01:05 PST 2005
On Fri, 30 Dec 2005, Keith Packard wrote:
> On Fri, 2005-12-30 at 16:49 -0800, Barton C Massey wrote:
>
> > Anyone remember offhand whether null bytes are allowed in
> > the count/chars strings returned by X requests? Anyone know
> > whether there must be a space in the reply for a trailing
> > null byte? If either of these things are wrong, then XCB
> > isn't reasonably going to be able to return C strings...
>
> Strings in X replies are not nul terminated. Xlib allocates an extra
> byte for 8-bit properties and stuffs a nul in there.
>
> -keith
>
>
Is there any reason we would not need to return a NULL terminated string?
It seems like that is something we should provide to prevent a lot of
duplicated code client side.
Jeremy
More information about the Xcb
mailing list