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.52 by root, Thu Jan 19 20:30:36 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);
385 } 385 }
386} ttyconf; 386} ttyconf;
387 387
388rxvt_ptytty_unix::rxvt_ptytty_unix () 388rxvt_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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines