From d391ca2ddb719d2478e824dec082b849613eeda6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Jul 2017 22:55:14 +0200 Subject: Fix support for using sockets insteads of pipes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-single-colour.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/blind-single-colour.c') diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index b8f693a..7e8c348 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -86,8 +86,7 @@ PROCESS(void) for (y = stream.height; y--;) for (x = stream.width * sizeof(*buf); x;) for (x -= n = MIN(sizeof(buf), x); n; n -= (size_t)r) - if ((r = write(STDOUT_FILENO, buf, n)) < 0) - eprintf("write :"); + r = ewrite(STDOUT_FILENO, buf, n, ""); } #endif -- cgit v1.2.3-70-g09d2