From 84c7ea0507584733a0956bf26a1268dbce61d0ca Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 25 Apr 2000 10:53:51 +0000 Subject: [PATCH] fix Nick's embarassing bug found by tigert -Yosh --- ChangeLog | 4 ++++ plug-ins/common/png.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9f2ec82417..d559080b67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 25 03:52:43 PDT 2000 Manish Singh + + * plug-ins/common/png.c: fix Nick's embarassing bug found by tigert + 2000-04-25 Nick Lamb * plug-ins/common/png.c: Sidestep potential problems when a diff --git a/plug-ins/common/png.c b/plug-ins/common/png.c index dd28bba617..994e657703 100644 --- a/plug-ins/common/png.c +++ b/plug-ins/common/png.c @@ -713,7 +713,7 @@ save_image (gchar *filename, /* I - File to save to */ */ #if PNG_LIBPNG_VER > 88 - pp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); + pp = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); info = png_create_info_struct(pp); #else pp = (png_structp)calloc(sizeof(png_struct), 1);