xproperty: Don't limit property lengths
All that I can say is "oops, I blame copy&paste". Thanks to Elv13 for noticing this. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2ac95b4ae8
commit
642ab35988
|
@ -363,11 +363,13 @@ luaA_window_get_xproperty(lua_State *L)
|
||||||
xcb_atom_t type;
|
xcb_atom_t type;
|
||||||
void *data;
|
void *data;
|
||||||
xcb_get_property_reply_t *reply;
|
xcb_get_property_reply_t *reply;
|
||||||
|
uint32_t length;
|
||||||
|
|
||||||
type = prop->type == PROP_STRING ? UTF8_STRING : XCB_ATOM_CARDINAL;
|
type = prop->type == PROP_STRING ? UTF8_STRING : XCB_ATOM_CARDINAL;
|
||||||
|
length = prop->type == PROP_STRING ? UINT32_MAX : 1;
|
||||||
reply = xcb_get_property_reply(globalconf.connection,
|
reply = xcb_get_property_reply(globalconf.connection,
|
||||||
xcb_get_property_unchecked(globalconf.connection, false, w->window,
|
xcb_get_property_unchecked(globalconf.connection, false, w->window,
|
||||||
prop->atom, type, 0, 4), NULL);
|
prop->atom, type, 0, length), NULL);
|
||||||
if(!reply)
|
if(!reply)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue