diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-13 13:48:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-13 13:48:25 +0000 |
commit | f855d1a309f38301bcd8898e9fbc5c70133d1f98 (patch) | |
tree | 9cc6b8ca73a3830e462254ff704b720172884987 | |
parent | 9fc310dafe2f6b49f21479ce9dc61634da0e6226 (diff) | |
download | rsync-f855d1a309f38301bcd8898e9fbc5c70133d1f98.tar.gz |
vsprintf returns char* on sunos4
-rw-r--r-- | io.c | 3 | ||||
-rw-r--r-- | log.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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); @@ -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); |