From 0fe50ed6e40c69dd328421836de536da9c7e4393 Mon Sep 17 00:00:00 2001 From: naddy Date: Wed, 12 Dec 2012 20:39:25 +0000 Subject: [PATCH] reserve sufficient space for tty name --- misc/xnc/Makefile | 4 ++-- misc/xnc/patches/patch-rxvt2_command_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 misc/xnc/patches/patch-rxvt2_command_c diff --git a/misc/xnc/Makefile b/misc/xnc/Makefile index 8375cb98225..a06520d7c60 100644 --- a/misc/xnc/Makefile +++ b/misc/xnc/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.26 2012/12/11 21:09:18 naddy Exp $ +# $OpenBSD: Makefile,v 1.27 2012/12/12 20:39:25 naddy Exp $ COMMENT= filemanager for X Window DISTNAME= xnc-4.4.7 -REVISION= 3 +REVISION= 4 DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX} SHARED_LIBS= xncaqua 1.0 \ xncfive 1.0 diff --git a/misc/xnc/patches/patch-rxvt2_command_c b/misc/xnc/patches/patch-rxvt2_command_c new file mode 100644 index 00000000000..8862ad736ad --- /dev/null +++ b/misc/xnc/patches/patch-rxvt2_command_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-rxvt2_command_c,v 1.1 2012/12/12 20:39:25 naddy Exp $ +--- rxvt2/command.c.orig Wed Dec 12 21:33:54 2012 ++++ rxvt2/command.c Wed Dec 12 21:36:21 2012 +@@ -632,7 +632,7 @@ get_pty(void) + char *ptydev; + + #ifdef PTYS_ARE_OPENPTY +- char tty_name[sizeof "/dev/pts/????\0"]; ++ char tty_name[16]; + + if (openpty(&fd, &rxvt_ttyfd, tty_name, NULL, NULL) != -1) { + ttydev = strdup(tty_name);