Commit 531b8770 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

sftp: fix read

libssh2_sftp_read may return less than requested.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 56d7e5528a8c35bd7d515049e90117d2ff262fcc)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 549a97eb
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment