summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-14 23:31:58 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-14 23:31:58 +0000
commit37f9805dabba76b7a00bd2a0227762f6f239b598 (patch)
tree2fe8e857cbe11030c3ae0256923c882f4b50f555 /io.c
parentb5f9e67d57f4e507dcb339a838c959244951f25f (diff)
downloadrsync-37f9805dabba76b7a00bd2a0227762f6f239b598.tar.gz
changed strlcat() and strlcpy() to have the same semantics as the
OpenBSD functions of the same name. changed slprintf() to take buffer length rather than buffer length -1
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 71911408..25d75168 100644
--- a/io.c
+++ b/io.c
@@ -538,7 +538,7 @@ void io_printf(int fd, const char *format, ...)
int len;
va_start(ap, format);
- len = vslprintf(buf, sizeof(buf)-1, format, ap);
+ len = vslprintf(buf, sizeof(buf), format, ap);
va_end(ap);
if (len < 0) exit_cleanup(RERR_STREAMIO);