ports/73020: qpage runs words together

Douglas K. Rand rand at meridian-enviro.com
Sat Oct 23 00:10:23 UTC 2004

>Number:         73020
>Category:       ports
>Synopsis:       qpage runs words together
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 23 00:10:23 GMT 2004
>Originator:     Douglas K. Rand
>Release:        FreeBSD 4.10-RELEASE-p2 i386
Meridian Environmental Technology, Inc.
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 at delta.meridian-enviro.com:/usr/obj/usr/src/sys/DELTA i386

	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
	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. :))


	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;


More information about the freebsd-ports-bugs mailing list