diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-25 09:19:32 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-25 09:19:32 +0200 |
commit | b5ef40e9d388915b973efab43a9fbe57e80e21d1 (patch) | |
tree | a354da19839bb9bbd5f9f81c58231de1b5acff2a /src/bin | |
parent | 46d63bca58c9ee8bfc590577ee374614cd813414 (diff) |
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/starpbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/starpbm.c b/src/bin/starpbm.c index ba4e46d..8abc036 100644 --- a/src/bin/starpbm.c +++ b/src/bin/starpbm.c @@ -92,7 +92,7 @@ pixels_from_pbm(FILE *f, size_t *out_w, size_t *out_h) cfg[i] = strtol(buf, NULL, 10); } - if (!cfg[0] || !cfg[2]) + if (!cfg[0] || !cfg[1]) errx(EXIT_FAILURE, "invalid width / height"); uint8_t *bw; |