Introduction
Introduction Statistics Contact Development Disclaimer Help
blind-matrix-{rotate,transpose}: fix input check - blind - suckless command-lin…
git clone git://git.suckless.org/blind
Log
Files
Refs
README
LICENSE
---
commit 62ffee45ea763a321606b8ec8fe1bcf0a3791d27
parent 63288637cb354583456ce3afc2c227c90949e146
Author: Mattias Andrée <[email protected]>
Date: Fri, 14 Jul 2017 19:59:16 +0200
blind-matrix-{rotate,transpose}: fix input check
Signed-off-by: Mattias Andrée <[email protected]>
Diffstat:
M src/blind-matrix-rotate.c | 2 +-
M src/blind-matrix-transpose.c | 2 +-
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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.