mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
[xutil] Convert len to signed size
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
649cac0fb9
commit
e2bf0042fc
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue