imported new snprintf.c from samba, got rid of slprintf
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index 7aee347..dac0744 100644 (file)
--- a/io.c
+++ b/io.c
@@ -595,7 +595,7 @@ void io_printf(int fd, const char *format, ...)
        int len;
        
        va_start(ap, format);
-       len = vslprintf(buf, sizeof(buf), format, ap);
+       len = vsnprintf(buf, sizeof(buf), format, ap);
        va_end(ap);
 
        if (len < 0) exit_cleanup(RERR_STREAMIO);