diff options
Diffstat (limited to 'usr.bin/telnet/terminal.c')
-rw-r--r-- | usr.bin/telnet/terminal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/telnet/terminal.c b/usr.bin/telnet/terminal.c index b6d3b86..b5ceeda 100644 --- a/usr.bin/telnet/terminal.c +++ b/usr.bin/telnet/terminal.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)terminal.c 8.1 (Berkeley) 6/6/93"; +static char sccsid[] = "@(#)terminal.c 8.2 (Berkeley) 2/16/95"; #endif /* not lint */ #include <arpa/telnet.h> @@ -140,7 +140,8 @@ ttyflush(drop) n1 = n0 - n; if (!drop) n1 = TerminalWrite(ttyoring.bottom, n1); - n += n1; + if (n1 > 0) + n += n1; } ring_consumed(&ttyoring, n); } |