diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-02-09 11:11:01 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-02-09 11:11:01 +0000 |
commit | 1338e00966c16155b9579134faa9983d08051c01 (patch) | |
tree | 6a76152d2be220e96e128d6dbb61f9479f5ae508 /libexec | |
parent | a8716840baa8866df54b787d76ca65158a42a5a0 (diff) | |
download | src-1338e00966c16155b9579134faa9983d08051c01.tar.gz src-1338e00966c16155b9579134faa9983d08051c01.zip |
Support for >32 PTYs.
Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
Notes
Notes:
svn path=/head/; revision=6264
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/telnetd/sys_term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index abb732bedca5..17b96065c900 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -507,7 +507,7 @@ int *ptynum; p2 = &line[14]; #endif - for (cp = "pqrstuvwxyzPQRST"; *cp; cp++) { + for (cp = "pqrsPQRS"; *cp; cp++) { struct stat stb; *p1 = *cp; @@ -519,8 +519,8 @@ int *ptynum; */ if (stat(line, &stb) < 0) break; - for (i = 0; i < 16; i++) { - *p2 = "0123456789abcdef"[i]; + for (i = 0; i < 32; i++) { + *p2 = "0123456789abcdefghijklmnopqrstuv"[i]; p = open(line, 2); if (p > 0) { #ifndef __hpux |