[vlc-commits] sftp: fix read
Petri Hintukainen
git at videolan.org
Tue Mar 10 11:22:06 CET 2015
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Tue Mar 10 11:03:23 2015 +0200| [56d7e5528a8c35bd7d515049e90117d2ff262fcc] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56d7e5528a8c35bd7d515049e90117d2ff262fcc
---
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