From 6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 26 Apr 2018 02:02:30 +0000 Subject: Fix bug in recognizing GRAYSCALE* tuple type - but since it affects only images with non-visual tuple types, where function is undefined anyway, no functional effect git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3213 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/jpeg2000/pamtojpeg2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c index 3d8a97af..630f2310 100644 --- a/converter/other/jpeg2000/pamtojpeg2k.c +++ b/converter/other/jpeg2000/pamtojpeg2k.c @@ -355,7 +355,7 @@ convertToJasperImage(struct pam * const inpamP, JAS_IMAGE_CT_COLOR(JAS_IMAGE_CT_RGB_B)); } } else { - if (strncmp(inpamP->tuple_type, "GRAYSCALE", 9 == 0) || + if (strncmp(inpamP->tuple_type, "GRAYSCALE", 9) == 0 || strncmp(inpamP->tuple_type, "BLACKANDWHITE", 13) == 0) { jas_image_setclrspc(jasperP, JAS_CLRSPC_GENGRAY); jas_image_setcmpttype(jasperP, 0, -- cgit 1.4.1