Don't read if we chunked the input data.

This commit is contained in:
Christoph Lohmann 2015-08-30 11:28:35 +02:00
parent 9984ad4ba7
commit 0d838b7243

1
st.c
View file

@ -1531,6 +1531,7 @@ ttywrite(const char *s, size_t n)
* This means the buffer is getting full
* again. Empty it.
*/
if (n < 256)
ttyread();
n -= r;
s += r;