diff options
author | Damien Miller <djm@mindrot.org> | 2004-01-24 13:50:39 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-01-24 13:50:39 +1100 |
commit | 6814411b3edb2b8076042200b8e1c93b686f77cf (patch) | |
tree | 430cc8fa1d5ba1f8eda73be6425cea417fe8c07c /openbsd-compat/bsd-openpty.c | |
parent | fcb6220da091b94c310a063b7ee939c5d5cd69e2 (diff) |
- (djm) Typo in openbsd-compat/bsd-openpty.c; from wendyp AT cray.com
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-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. */ |