summaryrefslogtreecommitdiff
path: root/x11/xcut/files/patch-xcut.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2004-09-29 22:21:49 +0000
committerCy Schubert <cy@FreeBSD.org>2004-09-29 22:21:49 +0000
commita2d28759eac7dbf88ec76791b4b8e9eca9d8c8a8 (patch)
tree38859a2e6c2ae5e683a4552b114d8cbef3afe67d /x11/xcut/files/patch-xcut.c
parentFix apache version number entry, bump modified date for apache as well. (diff)
Buffer addressing bugfix.
Noticed by: Nicolas Rachinsky <nicolas@rachinsky.de> Approved by: portmgr (marcus)
Diffstat (limited to 'x11/xcut/files/patch-xcut.c')
-rw-r--r--x11/xcut/files/patch-xcut.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/xcut/files/patch-xcut.c b/x11/xcut/files/patch-xcut.c
new file mode 100644
index 000000000000..7c41a1529fde
--- /dev/null
+++ b/x11/xcut/files/patch-xcut.c
@@ -0,0 +1,11 @@
+--- xcut.c.orig Mon Sep 20 22:55:33 1999
++++ xcut.c Wed Sep 29 09:50:24 2004
+@@ -94,7 +94,7 @@
+ /* Send data to stdout */
+
+ do {
+- num_written += write(STDOUT_FILENO, buffer, nbytes - num_written);
++ num_written += write(STDOUT_FILENO, buffer + num_written, nbytes - num_written);
+ } while (num_written < nbytes);
+
+ /* Clean up */