src/sftp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/sftp.c b/src/sftp.c
index 9d325f1..5885810 100644
--- a/src/sftp.c
+++ b/src/sftp.c
@@ -1098,6 +1098,7 @@ static ssize_t sftp_read(LIBSSH2_SFTP_HANDLE * handle,
char *buffer,
total_read += copy;
filep->data_left -= copy;
+ filep->offset += copy;
if(filep->data_left)
return total_read;
-- 1.7.6.msysgit.0
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel