diff options
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtosrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pamtosrf.c b/converter/other/pamtosrf.c index a92be8b0..19328073 100644 --- a/converter/other/pamtosrf.c +++ b/converter/other/pamtosrf.c @@ -139,7 +139,7 @@ convertRaster(struct pam * const pamP, tuplerow = pnm_allocpamrow(pamP); for (row = 0; row < pamP->height; ++row) { - uint32_t const off = row * pamP->height; + uint32_t const off = row * pamP->width; uint16_t * const data = &imgP->data.data[off]; unsigned char * const alpha = &imgP->alpha.data[off]; |