diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 2 |
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. */ |