[xutil] Convert len to signed size
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
649cac0fb9
commit
e2bf0042fc
|
@ -71,7 +71,7 @@ xutil_gettextprop(xcb_connection_t *conn, xcb_window_t w, xcb_atom_t atom,
|
|||
if(prop_r->type == STRING ||
|
||||
prop_r->type == xutil_intern_atom(conn, "UTF8_STRING"))
|
||||
{
|
||||
if(prop_r->value_len < textlen - 1)
|
||||
if((ssize_t) prop_r->value_len < textlen - 1)
|
||||
{
|
||||
/* use memcpy() because prop_val may not be \0 terminated */
|
||||
memcpy(text, prop_val, prop_r->value_len);
|
||||
|
|
Loading…
Reference in New Issue