Explicitly cast a -1 that is being assigned to a size_t.
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index d50523b..13c9311 100644 (file)
--- a/log.c
+++ b/log.c
@@ -351,7 +351,7 @@ output_msg:
                int ierrno;
 
                INIT_CONST_XBUF(outbuf, convbuf);
-               INIT_XBUF(inbuf, (char*)buf, len, -1);
+               INIT_XBUF(inbuf, (char*)buf, len, (size_t)-1);
 
                while (inbuf.len) {
                        iconvbufs(ic, &inbuf, &outbuf, 0);