diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:30 +0200 |
commit | e7981e0e28541e5046c40879a4fdbcc308f143ec (patch) | |
tree | 86a4fe788f692321e6a6fbaff8d83708ba764234 /src/support.c | |
parent | 6e81a1b3e08a423c6f4c6976aecae915bd1a3f0b (diff) | |
download | mpd-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.c | 2 |
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 ) { |