1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Rodolphe Rocca fixes

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@135 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-03 15:42:25 +00:00
parent 01470097c6
commit 21c547689a
2 changed files with 3 additions and 2 deletions

View File

@@ -824,7 +824,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
}
if(channel->remote_eof)
return 1;
return buffer_get_len(buffer);
return buffer_get_rest_len(buffer);
}
/* nonblocking read on the specified channel. it will return <=len bytes of data read