ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/ptytty.C
(Generate patch)

Comparing rxvt-unicode/src/ptytty.C (file contents):
Revision 1.50 by root, Thu Jan 19 16:43:36 2006 UTC vs.
Revision 1.51 by ayin, Thu Jan 19 18:53:05 2006 UTC

101get_pty_openpty (int *fd_tty, char **ttydev) 101get_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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines