diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-06-16 02:46:44 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-06-16 02:46:44 +0000 |
commit | 5b2ab4418541e294abff56a37d861a4f1cc38db9 (patch) | |
tree | 2c0bdbfe01dc3ed6c46b067557a924b6d4af47af /converter/other/sgitopnm.c | |
parent | 15a1a702e2fc9e590820a377d766a8c23ed0dc2b (diff) | |
download | netpbm-mirror-5b2ab4418541e294abff56a37d861a4f1cc38db9.tar.gz netpbm-mirror-5b2ab4418541e294abff56a37d861a4f1cc38db9.tar.xz netpbm-mirror-5b2ab4418541e294abff56a37d861a4f1cc38db9.zip |
Release 10.66.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2204 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/sgitopnm.c')
-rw-r--r-- | converter/other/sgitopnm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/sgitopnm.c b/converter/other/sgitopnm.c index 2adb76a8..ea2daef3 100644 --- a/converter/other/sgitopnm.c +++ b/converter/other/sgitopnm.c @@ -376,7 +376,7 @@ readChannels(FILE * const ifP, MALLOCARRAY_NOFAIL(image[iindex], head->xsize); if (table) { - if (outChannelSpec && channel >= outChannel) { + if (!outChannelSpec || channel >= outChannel) { long const offset = table[sgiIndex].start; long const length = head->bpc == 2 ? table[sgiIndex].length / 2 : |