From 24e425719405c933983b2b6660c2d0f09e171305 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 9 Aug 1995 04:20:41 +0000 Subject: [PATCH] Fix test for slave buffer length git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6477 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 4 ++++ src/util/pty/getpty.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.26.2