]> andersk Git - openssh.git/blobdiff - pty.c
- OpenBSD CVS Changes
[openssh.git] / pty.c
diff --git a/pty.c b/pty.c
index 4103e6df856e8fdd73ce332bf4abe7be22ef77d0..fe31251cab9ca087db46938c6cdeccaacc632447 100644 (file)
--- a/pty.c
+++ b/pty.c
@@ -16,6 +16,7 @@
 #include "includes.h"
 RCSID("$Id$");
 
+#include <util.h>
 #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. */
This page took 0.033411 seconds and 4 git commands to generate.