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 /st.c | |
| parent | 9984ad4ba730b043d064095dca42b490904e38f3 (diff) | |
| download | st-0d838b72437c6cac0d87366352939fdb86c2b697.tar.gz st-0d838b72437c6cac0d87366352939fdb86c2b697.zip | |
Don't read if we chunked the input data.
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1531,7 +1531,8 @@ ttywrite(const char *s, size_t n) | |||
| 1531 | * This means the buffer is getting full | 1531 | * This means the buffer is getting full |
| 1532 | * again. Empty it. | 1532 | * again. Empty it. |
| 1533 | */ | 1533 | */ |
| 1534 | ttyread(); | 1534 | if (n < 256) |
| 1535 | ttyread(); | ||
| 1535 | n -= r; | 1536 | n -= r; |
| 1536 | s += r; | 1537 | s += r; |
| 1537 | } else { | 1538 | } else { |
