… | |
… | |
101 | get_pty_openpty (int *fd_tty, char **ttydev) |
101 | get_pty_openpty (int *fd_tty, char **ttydev) |
102 | { |
102 | { |
103 | #ifdef PTYS_ARE_OPENPTY |
103 | #ifdef PTYS_ARE_OPENPTY |
104 | int pfd; |
104 | int pfd; |
105 | int res; |
105 | int res; |
106 | char tty_name[sizeof "/dev/pts/????\0"]; |
106 | char tty_name[32]; |
107 | |
107 | |
108 | res = openpty (&pfd, fd_tty, tty_name, NULL, NULL); |
108 | res = openpty (&pfd, fd_tty, tty_name, NULL, NULL); |
109 | if (res != -1) |
109 | if (res != -1) |
110 | { |
110 | { |
111 | *ttydev = strdup (tty_name); |
111 | *ttydev = strdup (tty_name); |
… | |
… | |
385 | } |
385 | } |
386 | } ttyconf; |
386 | } ttyconf; |
387 | |
387 | |
388 | rxvt_ptytty_unix::rxvt_ptytty_unix () |
388 | rxvt_ptytty_unix::rxvt_ptytty_unix () |
389 | { |
389 | { |
390 | pty = tty = -1; |
|
|
391 | name = 0; |
390 | name = 0; |
392 | #if UTMP_SUPPORT |
391 | #if UTMP_SUPPORT |
393 | cmd_pid = 0; |
392 | cmd_pid = 0; |
394 | #endif |
393 | #endif |
395 | } |
394 | } |