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.

PR:		ports/73020
Submitted by:	Douglas K. Rand <rand@meridian-enviro.com>
This commit is contained in:
Pav Lucistnik 2004-10-28 22:03:28 +00:00
parent f5bf8a1a6b
commit 8f15720c84
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120440
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= qpage
PORTVERSION= 3.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://www.qpage.org/download/
EXTRACT_SUFX= .tar.Z

View file

@ -0,0 +1,11 @@
--- util.c.orig Sun Oct 25 20:55:11 1998
+++ util.c Thu Oct 28 23:58:37 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;
}