Made rprintf() of size_t value portable.
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index 117a9d6..064bf3b 100644 (file)
--- a/io.c
+++ b/io.c
@@ -473,8 +473,8 @@ static int read_unbuffered(int fd, char *buf, size_t len)
                }
 
                if (remaining > sizeof(line) - 1) {
-                       rprintf(FERROR, "multiplexing overflow %d\n\n",
-                               remaining);
+                       rprintf(FERROR, "multiplexing overflow %ld\n\n",
+                               (long)remaining);
                        exit_cleanup(RERR_STREAMIO);
                }