aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-single-colour.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-single-colour.c')
-rw-r--r--src/blind-single-colour.c2
1 files changed, 1 insertions, 1 deletions
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)