fixed a bug I introduced in the last big commit
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index b5ceff1..a557a9b 100644 (file)
--- a/io.c
+++ b/io.c
@@ -134,6 +134,7 @@ static int readfd(int fd,char *buffer,int N)
                        memcpy(buffer+total,read_buffer_p,ret);
                        read_buffer_p += ret;
                        read_buffer_len -= ret;
+                       total += ret;
                        continue;
                }