about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-27 07:43:16 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-27 07:43:16 +0000
commitac9154458a06c8ff990fa064981c15668d8d8124 (patch)
treeaae757e4de37d8a1e91e685f0e955766e99cc513 /other
parent9f6b126f9bbea66c65080f30bd2fef5c2aed1adc (diff)
downloadnetpbm-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.c2
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"
         */