aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 13:27:30 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 13:27:30 +0200
commite7981e0e28541e5046c40879a4fdbcc308f143ec (patch)
tree86a4fe788f692321e6a6fbaff8d83708ba764234 /src/support.c
parent6e81a1b3e08a423c6f4c6976aecae915bd1a3f0b (diff)
downloadmpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.gz
mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.tar.xz
mpd-e7981e0e28541e5046c40879a4fdbcc308f143ec.zip
use size_t and unsigned integers
Diffstat (limited to 'src/support.c')
-rw-r--r--src/support.c2
1 files changed, 1 insertions, 1 deletions
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 ) {