diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-09-25 01:49:55 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-09-25 01:49:55 +0000 |
commit | 423b5d086c5cdec480bd9fb7d97ed3067d371b14 (patch) | |
tree | 3a0992eb22b37e2a34dfee3a86f0a602d1e5a056 /converter/other | |
parent | e0127ffbf9440f7fa4042eab3bbf741f1185153e (diff) | |
download | netpbm-mirror-423b5d086c5cdec480bd9fb7d97ed3067d371b14.tar.gz netpbm-mirror-423b5d086c5cdec480bd9fb7d97ed3067d371b14.tar.xz netpbm-mirror-423b5d086c5cdec480bd9fb7d97ed3067d371b14.zip |
Fix wrong output, buffer overrun
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1301 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtopdbimg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pamtopdbimg.c b/converter/other/pamtopdbimg.c index 58869d56..dcd03450 100644 --- a/converter/other/pamtopdbimg.c +++ b/converter/other/pamtopdbimg.c @@ -6,7 +6,7 @@ Pilot Image Viewer). Bryan Henderson derived this from Eric Howe's programs named - 'pgmtoimgv' and 'pbmtoimgv'. + 'pgmtoimgv' and 'pbmtoimgv' in September 2010. =============================================================================*/ /* * Copyright (C) 1997 Eric A. Howe @@ -157,7 +157,7 @@ readimg(IPDB * const pdbP, pnm_readpamrow(&inpam, tuplerow); for (col = 0; col < inpam.width; ++col) - imgRaster[row * inpam.height + col] = tuplerow[col][0]; + imgRaster[row * inpam.width + col] = tuplerow[col][0]; } if (inpam.maxval == 1) |