diff options
author | Christoph Lohmann <20h@r-36.net> | 2015-08-30 11:28:35 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-08-30 11:28:35 +0200 |
commit | 0d838b72437c6cac0d87366352939fdb86c2b697 (patch) | |
tree | f6e7fb1e90e70c2bf9e3b256d93b7c8b0141af32 | |
parent | 9984ad4ba730b043d064095dca42b490904e38f3 (diff) |
Don't read if we chunked the input data.
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1531,7 +1531,8 @@ ttywrite(const char *s, size_t n) * This means the buffer is getting full * again. Empty it. */ - ttyread(); + if (n < 256) + ttyread(); n -= r; s += r; } else { |