1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/x11/xcut/files/patch-xcut.c
Cy Schubert a2d28759ea Buffer addressing bugfix.
Noticed by:	Nicolas Rachinsky <nicolas@rachinsky.de>
Approved by:	portmgr (marcus)
2004-09-29 22:21:49 +00:00

12 lines
345 B
C

--- 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 */