diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-27 07:43:16 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-27 07:43:16 +0000 |
commit | ac9154458a06c8ff990fa064981c15668d8d8124 (patch) | |
tree | aae757e4de37d8a1e91e685f0e955766e99cc513 /other | |
parent | 9f6b126f9bbea66c65080f30bd2fef5c2aed1adc (diff) | |
download | netpbm-mirror-ac9154458a06c8ff990fa064981c15668d8d8124.tar.gz netpbm-mirror-ac9154458a06c8ff990fa064981c15668d8d8124.tar.xz netpbm-mirror-ac9154458a06c8ff990fa064981c15668d8d8124.zip |
fix bug with X depth = 0
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@149 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r-- | other/pamx/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamx/image.c b/other/pamx/image.c index d74795cb..0e719438 100644 --- a/other/pamx/image.c +++ b/other/pamx/image.c @@ -157,7 +157,7 @@ newRGBImage(unsigned int const width, unsigned int const height, unsigned int const depth) { - unsigned int const pixlen = pixlen > 0 ? (depth + 7) / 8 : 1; + unsigned int const pixlen = depth > 0 ? (depth + 7) / 8 : 1; /* Special case for "zero" depth image, which is sometimes interpreted as "one color" */ |