vsprintf returns char* on sunos4
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 19339c7..068b5a9 100644 (file)
--- 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);