changed strlcat() and strlcpy() to have the same semantics as the
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index 7191140..25d7516 100644 (file)
--- a/io.c
+++ b/io.c
@@ -538,7 +538,7 @@ void io_printf(int fd, const char *format, ...)
        int len;
        
        va_start(ap, format);
-       len = vslprintf(buf, sizeof(buf)-1, format, ap);
+       len = vslprintf(buf, sizeof(buf), format, ap);
        va_end(ap);
 
        if (len < 0) exit_cleanup(RERR_STREAMIO);