about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/pgm/st4topgm.c2
-rw-r--r--doc/HISTORY4
2 files changed, 5 insertions, 1 deletions
diff --git a/converter/pgm/st4topgm.c b/converter/pgm/st4topgm.c
index e763852c..8e4660a3 100644
--- a/converter/pgm/st4topgm.c
+++ b/converter/pgm/st4topgm.c
@@ -212,7 +212,7 @@ main(int argc, const char **argv) {
     pm_proginit(&argc, argv);
 
     if (argc-1 < 1)
-        inputFileName = "'";
+        inputFileName = "-";
     else {
         inputFileName = argv[1];
         if (argc-1 > 1)
diff --git a/doc/HISTORY b/doc/HISTORY
index af284f2c..22df4eb5 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,10 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.71.00
 
+              st4topgm: Fix bug: with no argument, uses file named "'" instead
+              of Standard Input.  Always present (st45topgm was new in Netpbm
+              10.70 (March 2015).
+
               ppmtorgb3: Fix buffer overflow with long input file name.
               Always present.  (ppmtorgb3 was new in X.V11R4 (November 1989).