From: Sam Hartman Date: Wed, 9 Aug 1995 04:20:41 +0000 (+0000) Subject: Fix test for slave buffer length X-Git-Tag: krb5-1.0-beta6~1349 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24e425719405c933983b2b6660c2d0f09e171305;p=krb5.git Fix test for slave buffer length git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6477 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 30d40969f..a924884ae 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 9 00:16:40 1995 Sam Hartman + + * getpty.c (pty_getpty): Use the right test for slave buffer length. + Tue Aug 8 22:20:33 1995 Tom Yu * update_utmp.c (UTMP_FILE): _PATH_UTMP under NetBSD, not diff --git a/src/util/pty/getpty.c b/src/util/pty/getpty.c index b37d75587..867cbdf7f 100644 --- a/src/util/pty/getpty.c +++ b/src/util/pty/getpty.c @@ -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;