fix Nick's embarassing bug found by tigert

-Yosh
This commit is contained in:
Manish Singh
2000-04-25 10:53:51 +00:00
parent 07269dca52
commit 84c7ea0507
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Apr 25 03:52:43 PDT 2000 Manish Singh <yosh@gimp.org>
* plug-ins/common/png.c: fix Nick's embarassing bug found by tigert
2000-04-25 Nick Lamb <njl195@zepler.org.uk> 2000-04-25 Nick Lamb <njl195@zepler.org.uk>
* plug-ins/common/png.c: Sidestep potential problems when a * plug-ins/common/png.c: Sidestep potential problems when a

View File

@ -713,7 +713,7 @@ save_image (gchar *filename, /* I - File to save to */
*/ */
#if PNG_LIBPNG_VER > 88 #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); info = png_create_info_struct(pp);
#else #else
pp = (png_structp)calloc(sizeof(png_struct), 1); pp = (png_structp)calloc(sizeof(png_struct), 1);