jaltman fix for off-by-one error
authorKen Raeburn <raeburn@mit.edu>
Mon, 20 Mar 2000 07:25:11 +0000 (07:25 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 20 Mar 2000 07:25:11 +0000 (07:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12128 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/state.c

index 040a9affe180b79392e636111a6c9837315cbd64..12111613345d28d2c04c930ec03b72392ffe2311 100644 (file)
@@ -1,3 +1,9 @@
+2000-03-20  Ken Raeburn  <raeburn@mit.edu>
+           Jeffrey Altman  <jaltman@watsun.cc.columbia.edu>
+
+       * state.c (telrcv): Fix off-by-one error dealing with full
+       buffer.
+
 2000-02-24  Ezra Peisach  <epeisach@mit.edu>
 
        * configure.in: Remove dependency on libdes425 when krb4 support
index 0f3b161f2e67ea6938e22b959eeaaee093fd6845..83e1840f9ef734417d8fe7f835b02640ad966c2d 100644 (file)
@@ -102,7 +102,7 @@ telrcv()
 #endif
 
        while (ncc > 0) {
-               if ((&ptyobuf[BUFSIZ] - pfrontp) < 2)
+               if ((&ptyobuf[BUFSIZ] - pfrontp) < 1)
                        break;
                c = *netip++ & 0377, ncc--;
 #ifdef ENCRYPTION