From a2d28759eac7dbf88ec76791b4b8e9eca9d8c8a8 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Wed, 29 Sep 2004 22:21:49 +0000 Subject: Buffer addressing bugfix. Noticed by: Nicolas Rachinsky Approved by: portmgr (marcus) --- x11/xcut/files/patch-xcut.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 x11/xcut/files/patch-xcut.c (limited to 'x11/xcut/files/patch-xcut.c') 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 */ -- cgit v1.2.3