BSD 4_4_Lite2 release
[unix-history] / Foreign / src / telnet / terminal.c
index 6e3cf69..f1a7599 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #ifndef lint
  */
 
 #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>
 #endif /* not lint */
 
 #include <arpa/telnet.h>
@@ -140,7 +140,8 @@ ttyflush(drop)
                n1 = n0 - n;
                if (!drop)
                        n1 = TerminalWrite(ttyoring.bottom, n1);
                n1 = n0 - n;
                if (!drop)
                        n1 = TerminalWrite(ttyoring.bottom, n1);
-               n += n1;
+               if (n1 > 0)
+                       n += n1;
        }
        ring_consumed(&ttyoring, n);
     }
        }
        ring_consumed(&ttyoring, n);
     }