[vlc-commits] sftp: fix read
Petri Hintukainen
git at videolan.org
Wed Mar 11 16:57:58 CET 2015
vlc/vlc-2.2 | branch: master | Petri Hintukainen <phintuka at gmail.com> | Tue Mar 10 11:03:23 2015 +0200| [531b877039498dd15c135165fd8618c82e6a7421] | committer: Jean-Baptiste Kempf
sftp: fix read
libssh2_sftp_read may return less than requested.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 56d7e5528a8c35bd7d515049e90117d2ff262fcc)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=531b877039498dd15c135165fd8618c82e6a7421
---
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;
}
More information about the vlc-commits
mailing list