about summary refs log tree commit diff
path: root/converter/other/pamtosrf.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-05-30 19:11:12 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-05-30 19:11:12 +0000
commit178d7e26b40d60504c28879b5d4bd493e5c65327 (patch)
treea53e7d4ae7c2fa705b9ccfd8fc72110e33a9ab0f /converter/other/pamtosrf.c
parentbe68d56e96c48d548b33b487f12bf7850e9cb92c (diff)
downloadnetpbm-mirror-178d7e26b40d60504c28879b5d4bd493e5c65327.tar.gz
netpbm-mirror-178d7e26b40d60504c28879b5d4bd493e5c65327.tar.xz
netpbm-mirror-178d7e26b40d60504c28879b5d4bd493e5c65327.zip
Fix bug from a few days ago
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1492 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pamtosrf.c')
-rw-r--r--converter/other/pamtosrf.c2
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];