From 7131ff73508ea5ead65173d5644b47c9034e5350 Mon Sep 17 00:00:00 2001 From: lioux Date: Wed, 15 May 2002 14:21:46 +0000 Subject: o Teach rxvt about FreeBSD's pty: it goes all the way to letter v o Bump PORTREVISION Submitted by: Ingo Rohlfs --- x11/rxvt-unicode/Makefile | 1 + x11/rxvt-unicode/files/patch-ad | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'x11/rxvt-unicode') diff --git a/x11/rxvt-unicode/Makefile b/x11/rxvt-unicode/Makefile index b219ca38160d..bace02560487 100644 --- a/x11/rxvt-unicode/Makefile +++ b/x11/rxvt-unicode/Makefile @@ -10,6 +10,7 @@ PORTNAME= rxvt PORTVERSION= 2.6.4 +PORTREVISION= 1 CATEGORIES+= x11 MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \ ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \ diff --git a/x11/rxvt-unicode/files/patch-ad b/x11/rxvt-unicode/files/patch-ad index 6f3e7e9a7bcb..c057993b80dc 100644 --- a/x11/rxvt-unicode/files/patch-ad +++ b/x11/rxvt-unicode/files/patch-ad @@ -1,11 +1,20 @@ --- src/command.c.orig Thu Apr 5 03:52:39 2001 +++ src/command.c Fri Jun 22 13:36:57 2001 -@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm +@@ -322,7 +322,7 @@ + ttydev = tty_name; + + # define PTYCHAR1 "pqrstuvwxyz" +-# define PTYCHAR2 "0123456789abcdef" ++# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv" + for (c1 = PTYCHAR1; *c1; c1++) { + ptydev[len] = ttydev[len] = *c1; + for (c2 = PTYCHAR2; *c2; c2++) { +@@ -2376,7 +2376,7 @@ unsigned char buf[256]; va_start(arg_ptr, fmt); - vsprintf(buf, fmt, arg_ptr); + vsnprintf(buf, sizeof(buf), fmt, arg_ptr); va_end(arg_ptr); - rxvt_tt_write(r, buf, STRLEN(buf)); + tt_write(buf, strlen(buf)); } -- cgit