summaryrefslogtreecommitdiff
path: root/comms/qpage/files/patch-util.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-10-28 22:03:28 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-10-28 22:03:28 +0000
commit8f15720c8451df633f2ee88bd58298c69a70342f (patch)
tree5fc8cdd209fc4f3b6b20d14559c2a313d6712202 /comms/qpage/files/patch-util.c
parent- Update to 1.8.3 (diff)
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>
Diffstat (limited to 'comms/qpage/files/patch-util.c')
-rw-r--r--comms/qpage/files/patch-util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/comms/qpage/files/patch-util.c b/comms/qpage/files/patch-util.c
new file mode 100644
index 000000000000..fd7e6b7ff33c
--- /dev/null
+++ b/comms/qpage/files/patch-util.c
@@ -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;
+ }
+