From 27b5ecbc7a7f3149fa0d7c2d17040dbff5bf0ab2 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Sat, 11 Dec 1999 09:35:47 +0000 Subject: namebuflen not sizeof namebuflen; bnd@ep-ag.com via djm@mindrot.org --- usr.bin/ssh/pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/pty.c b/usr.bin/ssh/pty.c index 08ede59a683..0e38b5f1234 100644 --- a/usr.bin/ssh/pty.c +++ b/usr.bin/ssh/pty.c @@ -14,7 +14,7 @@ */ #include "includes.h" -RCSID("$Id: pty.c,v 1.10 1999/12/09 00:24:03 deraadt Exp $"); +RCSID("$Id: pty.c,v 1.11 1999/12/11 09:35:46 markus Exp $"); #include #include "pty.h" @@ -153,7 +153,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