about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pngtopam.c2
-rw-r--r--doc/HISTORY3
2 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/pngtopam.c b/converter/other/pngtopam.c
index f7767404..2f99d4ac 100644
--- a/converter/other/pngtopam.c
+++ b/converter/other/pngtopam.c
@@ -1277,7 +1277,7 @@ convertpng(FILE *             const ifP,
                          &bgColor);
   
     pam.size        = sizeof(pam);
-    pam.len         = PAM_STRUCT_SIZE(maxval);
+    pam.len         = PAM_STRUCT_SIZE(tuple_type);
     pam.file        = stdout;
     pam.plainformat = 0;
     pam.height      = pngxP->info_ptr->height;
diff --git a/doc/HISTORY b/doc/HISTORY
index 7a09ebd6..785871cf 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,9 @@ CHANGE HISTORY
 
 Not yet  BJH  Release 10.53.00
 
+              pngtopam: include tuple type in output.  Thanks
+              Thomas Henlich <thenlich@users.sourceforge.net>.
+
               sunicontopnm: Understands Depth=8.  Thanks Prophet of the Way
               <afu@wta.att.ne.jp>.