about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/sunicontopnm.c3
-rw-r--r--doc/HISTORY7
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