commit 62ffee45ea763a321606b8ec8fe1bcf0a3791d27
parent 63288637cb354583456ce3afc2c227c90949e146
Author: Mattias Andrée <maandree@kth.se>
Date: Fri, 14 Jul 2017 19:59:16 +0200
blind-matrix-{rotate,transpose}: fix input check
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/blind-matrix-rotate.c b/src/blind-matrix-rotate.c
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (stream.width != 1 && stream.height != 1)
+ if (stream.width != 1 || stream.height != 1)
eprintf("<stdin>: each frame must contain exactly 1 pixels\n");
stream.width = 3;
diff --git a/src/blind-matrix-transpose.c b/src/blind-matrix-transpose.c
@@ -56,7 +56,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (stream.width != 1 && stream.height != 12)
+ if (stream.width != 1 || stream.height != 1)
eprintf("<stdin>: each frame must contain exactly 1 pixels\n");
stream.width = 3;