From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 23 00:10:23 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D34D616A4CF for ; Sat, 23 Oct 2004 00:10:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A212043D5C for ; Sat, 23 Oct 2004 00:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9N0AN0v011372 for ; Sat, 23 Oct 2004 00:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9N0ANvX011371; Sat, 23 Oct 2004 00:10:23 GMT (envelope-from gnats) Resent-Date: Sat, 23 Oct 2004 00:10:23 GMT Resent-Message-Id: <200410230010.i9N0ANvX011371@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Douglas K. Rand" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B7B216A4CE for ; Sat, 23 Oct 2004 00:03:06 +0000 (GMT) Received: from newman.meridian-enviro.com (newman.meridian-enviro.com [207.109.235.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FCF043D48 for ; Sat, 23 Oct 2004 00:03:05 +0000 (GMT) (envelope-from rand@meridian-enviro.com) Received: from delta.meridian-enviro.com (delta.meridian-enviro.com [10.10.10.43])i9N034pI033605 for ; Fri, 22 Oct 2004 19:03:05 -0500 (CDT) (envelope-from rand@meridian-enviro.com) Received: (from rand@localhost)i9N034ga099358; Fri, 22 Oct 2004 19:03:04 -0500 (CDT) (envelope-from rand) Message-Id: <200410230003.i9N034ga099358@delta.meridian-enviro.com> Date: Fri, 22 Oct 2004 19:03:04 -0500 (CDT) From: "Douglas K. Rand" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/73020: qpage runs words together X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Douglas K. Rand" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 00:10:23 -0000 >Number: 73020 >Category: ports >Synopsis: qpage runs words together >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 23 00:10:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Douglas K. Rand >Release: FreeBSD 4.10-RELEASE-p2 i386 >Organization: Meridian Environmental Technology, Inc. >Environment: System: FreeBSD delta.meridian-enviro.com 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #21: Mon Aug 30 21:55:51 CDT 2004 rand@delta.meridian-enviro.com:/usr/obj/usr/src/sys/DELTA i386 >Description: The qpage port will run words together in long pages. The problem is in msgcpy in util.c, where the breaks don't preserve word boundries. >How-To-Repeat: qpage -p USER -f USER "this is a test of a message where two words will have the white space between them removed" results in this page being delivered: USER: this is a test of a message where two words will have the whitespace between them removed (Notice that "white space" became "whitespace", and no I didn't plan my test case that carefully. :)) >Fix: Add this patch file to the port. I've also submitted it to the author of qpage. --- /tmp/ports/a/Agena/usr/ports/comms/qpage/work/qpage-3.3/util.c-orig Fri Oct 22 18:57:00 2004 +++ /tmp/ports/a/Agena/usr/ports/comms/qpage/work/qpage-3.3/util.c Fri Oct 22 18:57:04 2004 @@ -537,7 +537,7 @@ ** Now make sure we didn't chop a word in the middle. */ if (*src && end) { - *end++ = '\0'; + *++end = '\0'; src = start; } >Release-Note: >Audit-Trail: >Unformatted: