X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3151cbae8981925b942d94df2f2b41059927646c..e0ed4e4087ebeff0b0fe8f3419bcccf84fbd89a9:/io.c diff --git a/io.c b/io.c index 36d5f1b2..3ca13df5 100644 --- a/io.c +++ b/io.c @@ -375,8 +375,7 @@ int read_filesfrom_line(int fd, char *fname) extern int io_timeout; extern int eol_nulls; extern char *remote_filesfrom_file; - extern int am_server; - int reading_remotely = remote_filesfrom_file || (am_server && fd == 0); + int reading_remotely = remote_filesfrom_file != NULL; int nulls = eol_nulls || reading_remotely; start: @@ -688,7 +687,7 @@ void io_start_buffering(int fd) { if (io_buffer) return; multiplex_out_fd = fd; - io_buffer = (char *)malloc(IO_BUFFER_SIZE); + io_buffer = new_array(char, IO_BUFFER_SIZE); if (!io_buffer) out_of_memory("writefd"); io_buffer_count = 0; }