Date: Mon, 19 Nov 2001 15:15:00 +0800 (CST) From: Christopher Hall <hsw@acm.org> To: FreeBSD-gnats-submit@freebsd.org Cc: lioux@freebsd.org Subject: ports/32100: rxvt-devel mouse reporting does not work Message-ID: <200111190715.fAJ7F0L63755@x4.tucheng.generalresources.com>
next in thread | raw e-mail | index | archive | help
>Number: 32100 >Category: ports >Synopsis: rxvt-devel mouse reporting does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 18 23:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Christopher Hall >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Oct 31 11:55:22 CST 2001 GENERIC KERNEL >Description: rxvt-devel-2.7.7 mouse reporting does not work >How-To-Repeat: run w3m with mouse enabled in rxvt window >Fix: remove the (char *) from the sizeof the vsnprintf line since this restricts the buffer size to 4 bytes rather than the 256 bytes intended here is the modified files/patch-src::command.c --- src/command.c.orig Thu Apr 5 03:52:39 2001 +++ src/command.c Fri Jun 22 13:36:57 2001 @@ -2878,7 +2878,7 @@ unsigned char buf[256]; va_start(arg_ptr, fmt); - vsprintf((char *)buf, fmt, arg_ptr); + vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr); va_end(arg_ptr); rxvt_tt_write(r, buf, (unsigned int)STRLEN(buf)); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111190715.fAJ7F0L63755>