From b5ef40e9d388915b973efab43a9fbe57e80e21d1 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 25 Feb 2019 09:19:32 +0200 Subject: fix warnings found by -D_FORTIFY_SOURCE=2 --- src/bin/starpbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin') 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; -- cgit v1.2.3-70-g09d2