X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f0fca04e4e136c4a487a922e8fb09acf46aeafa0..f855d1a309f38301bcd8898e9fbc5c70133d1f98:/io.c diff --git a/io.c b/io.c index 587b3c74..004f4cee 100644 --- a/io.c +++ b/io.c @@ -472,7 +472,8 @@ void io_printf(int fd, const char *format, ...) #if HAVE_VSNPRINTF len = vsnprintf(buf, sizeof(buf)-1, format, ap); #else - len = vsprintf(buf, format, ap); + vsprintf(buf, format, ap); + len = strlen(buf); #endif va_end(ap);