From 1338e00966c16155b9579134faa9983d08051c01 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Thu, 9 Feb 1995 11:11:01 +0000 Subject: Support for >32 PTYs. Submitted by: Heikki Suonsivu --- lib/libutil/pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c index 1644aee39bb0..4443f0889c46 100644 --- a/lib/libutil/pty.c +++ b/lib/libutil/pty.c @@ -63,9 +63,9 @@ openpty(amaster, aslave, name, termp, winp) else ttygid = -1; - for (cp1 = "pqrs"; *cp1; cp1++) { + for (cp1 = "pqrsPQRS"; *cp1; cp1++) { line[8] = *cp1; - for (cp2 = "0123456789abcdef"; *cp2; cp2++) { + for (cp2 = "0123456789abcdefghijklmnopqrstuv"; *cp2; cp2++) { line[9] = *cp2; if ((master = open(line, O_RDWR, 0)) == -1) { if (errno == ENOENT) -- cgit v1.3