From 9b18958ee80f23e04e4766fc745e916fc7dabaa5 Mon Sep 17 00:00:00 2001 From: tth Date: Fri, 13 Sep 2019 13:07:11 +0200 Subject: [PATCH] oooooverflooooow spooootted ! --- 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 b642ef8..80db3e6 100644 --- a/lib/fimg-pnm.c +++ b/lib/fimg-pnm.c @@ -165,7 +165,7 @@ fprintf(fp, "%s\n%d %d\n", code, head->width, head->height); maximum = fimg_get_maxvalue(head); fprintf(fp, "# maxval %15f\n", maximum); -fk = maximum / 65536.0; +fk = maximum / 65535.0; fprintf(fp, "# divisor %15f\n", fk); fprintf(fp, "65535\n"); fflush(fp);