about summary refs log tree commit diff
path: root/other/pamx/pamx.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/pamx/pamx.c')
-rw-r--r--other/pamx/pamx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamx/pamx.c b/other/pamx/pamx.c
index 8a64fec4..17980643 100644
--- a/other/pamx/pamx.c
+++ b/other/pamx/pamx.c
@@ -184,7 +184,7 @@ fillRow1(struct pam *     const pamP,
     
     for (col = 0; col < pamP->width; ++col) {
         unsigned int plane;
-        for (plane = 0; plane < pamP->depth; ++plane)
+        for (plane = 0; plane < 3; ++plane)
             *(*pP)++ =
                 pnm_scalesample(tuplerow[col][0], pamP->maxval, 255);
     }