mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 17:47:33 -05:00
Robert de Bath's Big Patch, part 1
[originally from svn r516]
This commit is contained in:
12
ssh.c
12
ssh.c
@ -128,16 +128,8 @@ static void c_write (char *buf, int len) {
|
||||
if (len > 0) { fwrite(buf, len, 1, stderr); fputc('\n', stderr); }
|
||||
return;
|
||||
}
|
||||
while (len--) {
|
||||
int new_head = (inbuf_head + 1) & INBUF_MASK;
|
||||
if (new_head != inbuf_reap) {
|
||||
inbuf[inbuf_head] = *buf++;
|
||||
inbuf_head = new_head;
|
||||
} else {
|
||||
term_out();
|
||||
if( inbuf_head == inbuf_reap ) len++; else break;
|
||||
}
|
||||
}
|
||||
while (len--)
|
||||
c_write1(*buf++);
|
||||
}
|
||||
|
||||
struct Packet {
|
||||
|
Reference in New Issue
Block a user