From a34a28bf86c04eb35c522b1e31c32e94edf355d2 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 14 Dec 1999 10:47:15 +1100 Subject: - OpenBSD CVS Changes - [canohost.c] fix get_remote_port() and friends for sshd -i; Holger.Trapp@Informatik.TU-Chemnitz.DE - [mpaux.c] make code simpler. no need for memcpy. niels@ ok - [pty.c] namebuflen not sizeof namebuflen; bnd@ep-ag.com via djm@mindrot.org fix proto; markus - [ssh.1] typo; mark.baushke@solipsa.com - [channels.c ssh.c ssh.h sshd.c] type conflict for 'extern Type *options' in channels.c; dot@dotat.at - [sshconnect.c] move checking of hostkey into own function. - [version.h] OpenSSH-1.2.1 --- pty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pty.c') diff --git a/pty.c b/pty.c index c6c7363b2..f7ef19ca7 100644 --- a/pty.c +++ b/pty.c @@ -14,8 +14,9 @@ */ #include "includes.h" -RCSID("$Id: pty.c,v 1.8 1999/12/08 23:16:55 damien Exp $"); +RCSID("$Id: pty.c,v 1.9 1999/12/13 23:47:16 damien Exp $"); +#include #include "pty.h" #include "ssh.h" @@ -163,7 +164,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) *ptyfd = open(buf, O_RDWR | O_NOCTTY); if (*ptyfd < 0) continue; - snprintf(namebuf, sizeof namebuflen, "/dev/tty%c%c", + snprintf(namebuf, namebuflen, "/dev/tty%c%c", ptymajors[i / num_minors], ptyminors[i % num_minors]); /* Open the slave side. */ -- cgit v1.2.3