about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pngx.c2
-rw-r--r--doc/HISTORY3
2 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/pngx.c b/converter/other/pngx.c
index 6d79bcfe..602fdb33 100644
--- a/converter/other/pngx.c
+++ b/converter/other/pngx.c
@@ -49,7 +49,7 @@ pngx_create(struct pngx ** const pngxPP,
     else {
         switch(rw) {
         case PNGX_READ:
-            pngxP->png_ptr = png_create_write_struct(
+            pngxP->png_ptr = png_create_read_struct(
                 PNG_LIBPNG_VER_STRING,
                 jmpbufP, errorHandler, NULL);
             break;
diff --git a/doc/HISTORY b/doc/HISTORY
index 66fa6123..41a6f242 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -12,6 +12,9 @@ not yet  BJH  Release 10.49.00
 
               jpeg2ktopam: Work with JP2 input as well as JPC.
 
+              pngtopam: use png_create_read_struct() instead of
+              png_create_write_struct().  Doesn't seem to affect anything.
+
 09.09.27 BJH  Release 10.48.00
 
               ppmsvgalib: Wait to initialize Svgalib to prevent it from