summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-13 13:48:25 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-13 13:48:25 +0000
commitf855d1a309f38301bcd8898e9fbc5c70133d1f98 (patch)
tree9cc6b8ca73a3830e462254ff704b720172884987
parent9fc310dafe2f6b49f21479ce9dc61634da0e6226 (diff)
downloadrsync-f855d1a309f38301bcd8898e9fbc5c70133d1f98.tar.gz
vsprintf returns char* on sunos4
-rw-r--r--io.c3
-rw-r--r--log.c3
2 files changed, 4 insertions, 2 deletions
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);
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);