Subject: 0001-sftp_read-adjust-file-offset.patch

0001-sftp_read-adjust-file-offset.patch

From: m odd <xieepp_at_gmail.com>
Date: Wed, 24 Aug 2011 23:47:46 +0800

 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

Received on 2011-08-24