From 692fab433ed6deae65200da0cbcbeea25b85230c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 1 Oct 2012 22:23:50 +0000 Subject: Fix always broken depth 8 function git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1747 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/sunicontopnm.c | 3 ++- 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 -- cgit 1.4.1