From e7981e0e28541e5046c40879a4fdbcc308f143ec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 13:27:30 +0200 Subject: use size_t and unsigned integers --- src/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/support.c') diff --git a/src/support.c b/src/support.c index 315c569f7..ae3381ef2 100644 --- a/src/support.c +++ b/src/support.c @@ -137,7 +137,7 @@ strscroll(char *str, char *separator, int width, scroll_state_t *st) } else { buf = g_malloc(size); g_strlcpy(buf, tmp+st->offset, size); - if (strlen(buf) < width) + if (strlen(buf) < (size_t)width) g_strlcat(buf, tmp, size); } if( time(NULL)-st->t >= 1 ) { -- cgit v1.2.3