diff options
Diffstat (limited to 'other/pamx/pamx.c')
-rw-r--r-- | other/pamx/pamx.c | 2 |
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); } |