diff options
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; |