diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-11-29 17:25:52 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-11-29 17:25:52 +0000 |
commit | 5d6710990fcfc5c670241042e9cfc8a5fc4f98d2 (patch) | |
tree | 6a8c97b4d029deffff4cdff6e22cc5286510443c /converter/other | |
parent | 68962917657dc4b58f207084a6264cd6aebfa3c0 (diff) | |
download | netpbm-mirror-5d6710990fcfc5c670241042e9cfc8a5fc4f98d2.tar.gz netpbm-mirror-5d6710990fcfc5c670241042e9cfc8a5fc4f98d2.tar.xz netpbm-mirror-5d6710990fcfc5c670241042e9cfc8a5fc4f98d2.zip |
Fix slightly wrong error message
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3709 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtopng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pamtopng.c b/converter/other/pamtopng.c index 68d4055d..cfff38cb 100644 --- a/converter/other/pamtopng.c +++ b/converter/other/pamtopng.c @@ -251,7 +251,7 @@ colorTypeFromInputType(const struct pam * const pamP) { -----------------------------------------------------------------------------*/ png_byte retval; - if (pamP->depth < 1 && pamP->depth > 4) + if (pamP->depth < 1 || pamP->depth > 4) pm_error ("Number of color planes must be between 1 and 4 inclusive"); if (pamP->maxval != 1 && pamP->maxval != 3 && pamP->maxval != 15 && |