summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-openpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r--openbsd-compat/bsd-openpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index 0a3c5e211..512fb8451 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -151,7 +151,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
151 151
152 for (i = 0; i < highpty; i++) { 152 for (i = 0; i < highpty; i++) {
153 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i); 153 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i);
154 snprintf(ttbuf, sideof(ttbuf), "/dev/ttyp%03d", i); 154 snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%03d", i);
155 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1) 155 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1)
156 continue; 156 continue;
157 /* Open the slave side. */ 157 /* Open the slave side. */