X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/851dbdb775e409cf9f55e51bd8e07139d2f8930b..f855d1a309f38301bcd8898e9fbc5c70133d1f98:/log.c diff --git a/log.c b/log.c index 19339c76..068b5a93 100644 --- a/log.c +++ b/log.c @@ -37,7 +37,8 @@ void rprintf(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);