[Xcb] zeroing out

Keith Packard keithp at keithp.com
Fri Dec 30 16:55:18 PST 2005


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/xcb/attachments/20051230/43b64e05/attachment.pgp


More information about the Xcb mailing list