[vlc-devel] [PATCH] sftp: fix read
Petri Hintukainen
phintuka at users.sourceforge.net
Tue Mar 10 10:03:23 CET 2015
From: Petri Hintukainen <phintuka at gmail.com>
libssh2_sftp_read may return less than requested.
---
modules/access/sftp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 4152d2a..fe25f05 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -299,6 +299,7 @@ static block_t* Block( access_t* p_access )
}
else
{
+ p_block->i_buffer = i_ret;
p_access->info.i_pos += i_ret;
return p_block;
}
--
2.1.0
More information about the vlc-devel
mailing list