about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pnmtops.c7
-rw-r--r--doc/HISTORY16
-rw-r--r--version.mk2
3 files changed, 18 insertions, 7 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index 4b56b6a2..dc55a7e3 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -1905,6 +1905,7 @@ convertPage(FILE *       const ifP,
         /* The file stream which is the head of the filter chain; we write to
            this and filtered stuff comes out the other end.
         */
+    FILE * filterChainOfP;
 
     pnm_readpaminit(ifP, &inpam, PAM_STRUCT_SIZE(tuple_type));
 
@@ -1947,7 +1948,11 @@ convertPage(FILE *       const ifP,
     initOutputEncoder(&oe, inpam.width, bitsPerSample,
                       rle, flate, ascii85, psFilter);
 
-    spawnFilters(stdout, &oe, &feedFileP, filterPidList);
+    fflush(stdout);
+    filterChainOfP = fdopen(dup(fileno(stdout)), "w");
+        /* spawnFilters() closes this.  See FILE MANAGEMENT above */
+
+    spawnFilters(filterChainOfP, &oe, &feedFileP, filterPidList);
  
     convertRaster(&inpam, bitsPerSample, psFilter, feedFileP);
 
diff --git a/doc/HISTORY b/doc/HISTORY
index 944b73c5..ed9ddd95 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,25 +4,31 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+13.05.27 BJH  Release 10.62.07
+
+              pnmtops: Fix bug: only first image gets converted.  Broken in
+              Netpbm 10.56 (September 2011).
+
 13.05.20 BJH  Release 10.62.06
 
               pnmremap (ergo pnmquant): fix bug: incorrect output with
               -norandom and floyd-steinberg dithering.  Always broken.
-              (-norandom was introduced in 10.30 (June 2007)).
+              (-norandom was introduced in Netpbm 10.39 (June 2007)).
 
 13.05.11 BJH  Release 10.62.05
 
               pnmtopng: fix bug: incorrect output when output should have
-              an alpha mask.  Broken in 10.55 (June 2011).  Thanks
+              an alpha mask.  Broken Netpbm in 10.55 (June 2011).  Thanks
               Ludolf Holzheid (lholzheid@bihl-wiedemann.de).
 
               pnmtopng: fix bug: output bigger than it needs to be when the
               input is a color format image that contains only gray.  Broken
-              since at least 10.26 (May 2001), but after 10.18 (September
-              2003).  Thanks Ludolf Holzheid (lholzheid@bihl-wiedemann.de).
+              since at least Netpbm 10.26 (May 2001), but after 10.18
+              (September 2003).  Thanks Ludolf Holzheid
+              (lholzheid@bihl-wiedemann.de).
 
               pamtilt: fix bug: incorrect output or invalid memory access
-              crash.  Always broken (program was new in Neptbm 10.30
+              crash.  Always broken (program was new in Netpbm 10.30
               (October 2005)).
 
 13.05.02 BJH  Release 10.62.04
diff --git a/version.mk b/version.mk
index 590c76d5..e0f17fec 100644
--- a/version.mk
+++ b/version.mk
@@ -1,4 +1,4 @@
 NETPBM_MAJOR_RELEASE = 10
 NETPBM_MINOR_RELEASE = 62
-NETPBM_POINT_RELEASE = 6
+NETPBM_POINT_RELEASE = 7