From 21c547689aaffcea3045df0359315115e2e4c0b0 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 3 Mar 2008 15:42:25 +0000 Subject: Rodolphe Rocca fixes git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@135 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh') diff --git a/libssh/channels.c b/libssh/channels.c index 45c6d6a4..b9f757df 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -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 -- cgit