diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-10-01 22:23:50 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-10-01 22:23:50 +0000 |
commit | 692fab433ed6deae65200da0cbcbeea25b85230c (patch) | |
tree | ecec5b1e8d789ad13519e24b808dc3ab92a15ef4 | |
parent | f4063be8796ac079bcee7b8324131056dac9eff2 (diff) | |
download | netpbm-mirror-692fab433ed6deae65200da0cbcbeea25b85230c.tar.gz netpbm-mirror-692fab433ed6deae65200da0cbcbeea25b85230c.tar.xz netpbm-mirror-692fab433ed6deae65200da0cbcbeea25b85230c.zip |
Fix always broken depth 8 function
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1747 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/sunicontopnm.c | 3 | ||||
-rw-r--r-- | doc/HISTORY | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/converter/other/sunicontopnm.c b/converter/other/sunicontopnm.c index ad5aa0f8..eff1be58 100644 --- a/converter/other/sunicontopnm.c +++ b/converter/other/sunicontopnm.c @@ -130,8 +130,9 @@ main(int argc, const char ** argv) { assert(depth == 8); format = PGM_TYPE; maxval = 255; + pgm_writepgminit(stdout, cols, rows, maxval, 0); grayrow = pgm_allocrow(cols); - colChars = cols / depth; + colChars = cols; } for (row = 0; row < rows; ++row) { diff --git a/doc/HISTORY b/doc/HISTORY index f1609c2a..ad4e3c48 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,8 +6,11 @@ CHANGE HISTORY not yet BJH Release 10.61.00 - pamgauss: Fix bug: erroneously says -maxval is too big. - Always broken (Pamgauss was added in 10.23 (July 2004). + Sunicontopnm: Fix incorrect output for depth 8. Always broken + (depth = 8 capability was added in Netpbm 10.53 (December 2010). + + pamgauss: Fix bug: erroneously says -maxval is too big on 64 bit + system. Always broken (Pamgauss was added in 10.23 (July 2004). 12.09.30 BJH Release 10.60.00 |