ports/73020: qpage runs words together

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


Sigh. My patch is slightly broken. I wrote:

--- /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;
 	}
 

And of course the absolute path names should not be there. Sorry about
that. This patch should work better:

--- util.c-orig	Fri Oct 22 18:57:00 2004
+++ 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