From af92ce4e2e1a0797e2f18aec8673ae1b0eba0f64 Mon Sep 17 00:00:00 2001 From: tth Date: Thu, 10 Mar 2022 16:59:37 +0100 Subject: [PATCH] math error --- lib/fimg-pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fimg-pnm.c b/lib/fimg-pnm.c index 716623d..c49357e 100644 --- a/lib/fimg-pnm.c +++ b/lib/fimg-pnm.c @@ -298,7 +298,7 @@ if (NULL==(fp=fopen(fname, "w"))) { * some software (yes, povray, I look at you) doesn't like * width and height on two separate lines. */ -fprintf(fp, "P2\n%d %d\n65532\n\n", src->width, src->height); +fprintf(fp, "P2\n%d %d\n65535\n\n", src->width, src->height); area = src->width * src->height; maximum = fimg_get_maxvalue(src);