From deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Apr 2017 17:33:31 +0200 Subject: Clean up 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blind-single-colour.c') diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index a0f5ccb..955511a 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -76,7 +76,7 @@ main(int argc, char *argv[]) while (inf || stream.frames--) { for (y = stream.height; y--;) { for (x = stream.width; x;) { - x -= n = ELEMENTSOF(buf) < x ? ELEMENTSOF(buf) : x; + x -= n = MIN(ELEMENTSOF(buf), x); for (n *= sizeof(*buf); n; n -= (size_t)r) { r = write(STDOUT_FILENO, buf, n); if (r < 0) -- cgit v1.2.3-70-g09d2