f51b1d5965
us a tty with proper permissions/owner/group. * Reserve enough space for tty name. ok benoit@
13 lines
408 B
Plaintext
13 lines
408 B
Plaintext
$OpenBSD: patch-src_ptytty_c,v 1.1 2012/12/12 21:40:02 naddy Exp $
|
|
--- src/ptytty.c.orig Wed Dec 12 21:49:15 2012
|
|
+++ src/ptytty.c Wed Dec 12 21:49:32 2012
|
|
@@ -44,7 +44,7 @@ rxvt_get_pty(int *fd_tty, char **ttydev)
|
|
|
|
#ifdef PTYS_ARE_OPENPTY
|
|
{
|
|
- char tty_name[sizeof "/dev/pts/????\0"];
|
|
+ char tty_name[16];
|
|
|
|
if (openpty(&pfd, fd_tty, tty_name, NULL, NULL) != -1) {
|
|
*ttydev = STRDUP(tty_name);
|