[Xcb] strings in xcb requests

Ian Osgood iano at quirkster.com
Tue Jun 17 10:23:28 PDT 2008


On Jun 17, 2008, at 5:08 AM, Ted X Toth wrote:

> I'm using the xcb-xselinux extension and getting a BadLength error  
> from
> xcb_set_selection_use_context. I'd like to know how strings are  
> handled
> specifically is a null terminator sent to the server? This request
> includes the length of the string so it shouldn't need the terminator
> but if it doesn't send it the server would need to add it, right?
> _______________________________________________
>

No, X requests always use counted strings that don't need to be null  
terminated, and the XCB calls stay very close to the protocol. (No  
jokes about X being older than C, please.)

Ian



More information about the Xcb mailing list