diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-14 23:31:58 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-14 23:31:58 +0000 |
commit | 37f9805dabba76b7a00bd2a0227762f6f239b598 (patch) | |
tree | 2fe8e857cbe11030c3ae0256923c882f4b50f555 /io.c | |
parent | b5f9e67d57f4e507dcb339a838c959244951f25f (diff) | |
download | rsync-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |