From e2bf0042fc66456aa6f3f3bbfafa86c6a0c9d102 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Apr 2008 19:28:40 +0200 Subject: [PATCH] [xutil] Convert len to signed size Signed-off-by: Julien Danjou --- common/xutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xutil.c b/common/xutil.c index 6e613c3f..4c898f39 100644 --- a/common/xutil.c +++ b/common/xutil.c @@ -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);