Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
close the other half of the pipe in do_recv(). This fixes the problem
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
1fafaa6
..
ccb099a
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-521,13
+521,7
@@
void io_printf(int fd, const char *format, ...)
int len;
va_start(ap, format);
int len;
va_start(ap, format);
-
-#if HAVE_VSNPRINTF
- len = vsnprintf(buf, sizeof(buf)-1, format, ap);
-#else
- vsprintf(buf, format, ap);
- len = strlen(buf);
-#endif
+ len = vslprintf(buf, sizeof(buf)-1, format, ap);
va_end(ap);
if (len < 0) exit_cleanup(1);
va_end(ap);
if (len < 0) exit_cleanup(1);