From 6f9d75acb45235a93b1520beec7f96a98bde0412 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 27 Mar 2022 03:11:13 +0000 Subject: Release 10.73.39 git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@4314 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtoilbm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'converter/ppm/ppmtoilbm.c') diff --git a/converter/ppm/ppmtoilbm.c b/converter/ppm/ppmtoilbm.c index 595aa3f4..c5fa4d00 100644 --- a/converter/ppm/ppmtoilbm.c +++ b/converter/ppm/ppmtoilbm.c @@ -2274,6 +2274,7 @@ main(int argc, char ** argv) { if (colors == 0) pm_error("empty colormap??"); pm_message("%d colors found in colormap", colors); + nPlanes = pm_maxvaltobits(colors-1); } if (maskmethod != mskNone) { -- cgit 1.4.1