summaryrefslogtreecommitdiff
path: root/x11/xcut/files/patch-xcut.c
blob: 7c41a1529fde1a78befe3b4d4040a8c38fbf1f6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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 */