aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-single-colour.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-04-09 17:33:31 +0200
committerMattias Andrée <maandree@kth.se>2017-04-09 17:57:27 +0200
commitdeec79ce61b8661d3ad76f3ecc10a80d1ce19cdd (patch)
tree34a8863335a8eee38ec28419812e99a3c27cef64 /src/blind-single-colour.c
parentAdd blind-skip-pattern (diff)
downloadblind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.gz
blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.bz2
blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.xz
Clean up
Signed-off-by: Mattias Andrée <maandree@kth.se>
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)