diff --git a/src/channel.c b/src/channel.c index 2698777..f4a7cd2 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1919,8 +1919,8 @@ _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id, * assume the app will call it again with the rest! The 32K is a * conservative limit based on the text in RFC4253 section 6.1. */ - if(buflen > 32768) - buflen = 32768; + if(buflen > 32700) + buflen = 32700; if (channel->write_state == libssh2_NB_state_idle) { channel->write_bufwrote = 0;