Fix test for slave buffer length
authorSam Hartman <hartmans@mit.edu>
Wed, 9 Aug 1995 04:20:41 +0000 (04:20 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 9 Aug 1995 04:20:41 +0000 (04:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6477 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/getpty.c

index 30d40969f640268d3eabd23ed78d4ff7afc50a27..a924884aebe2b1f02f78f370fb9d03398582435c 100644 (file)
@@ -1,3 +1,7 @@
+Wed Aug  9 00:16:40 1995  Sam Hartman  <hartmans@tertius.mit.edu>
+
+       * getpty.c (pty_getpty): Use the right test for slave buffer length.
+
 Tue Aug  8 22:20:33 1995  Tom Yu  <tlyu@lothlorien.MIT.EDU>
 
        * update_utmp.c (UTMP_FILE): _PATH_UTMP under NetBSD, not
index b37d75587558005ef7903d9350817c3766027563..867cbdf7f532c283c32f8d1138f9bf721f5f9766 100644 (file)
@@ -101,7 +101,7 @@ close(slavefd);
 
                /* got pty */
                slavebuf[strlen("/dev/")] = 't';
-               if ( strlen(slavebuf) < slavelength ) {
+               if ( strlen(slavebuf) > slavelength ) {
                    close ( *fd);
                    *fd = -1;
 return PTY_GETPTY_SLAVE_TOOLONG;