diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-11 09:35:47 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-12-11 09:35:47 +0000 |
commit | 27b5ecbc7a7f3149fa0d7c2d17040dbff5bf0ab2 (patch) | |
tree | 6d151e7f2c32278df44382732c571c29929b8534 /usr.bin | |
parent | 940de116193b0bb58e1f997e389620cdf0e3e4c9 (diff) |
namebuflen not sizeof namebuflen; bnd@ep-ag.com via djm@mindrot.org
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/pty.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <util.h> #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. */ |