Skip to content

Commit

Permalink
Reverted incorrect change of PNG_LIBPNG_VER_STRING to png_get_libpng_…
Browse files Browse the repository at this point in the history
…ver(NULL).
  • Loading branch information
glennrp committed Nov 6, 2014
1 parent 0d67b92 commit 3e0971d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -2149,11 +2149,11 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
#ifdef PNG_USER_MEM_SUPPORTED
error_info.image=image;
error_info.exception=exception;
ping=png_create_read_struct_2(png_get_libpng_ver(NULL),&error_info,
ping=png_create_read_struct_2(PNG_LIBPNG_VER_STRING,&error_info,
MagickPNGErrorHandler,MagickPNGWarningHandler, NULL,
(png_malloc_ptr) Magick_png_malloc,(png_free_ptr) Magick_png_free);
#else
ping=png_create_read_struct(png_get_libpng_ver(NULL),&error_info,
ping=png_create_read_struct(PNG_LIBPNG_VER_STRING,&error_info,
MagickPNGErrorHandler,MagickPNGWarningHandler);
#endif
if (ping == (png_struct *) NULL)
Expand Down Expand Up @@ -9329,12 +9329,12 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
#ifdef PNG_USER_MEM_SUPPORTED
error_info.image=image;
error_info.exception=exception;
ping=png_create_write_struct_2(png_get_libpng_ver(NULL),&error_info,
ping=png_create_write_struct_2(PNG_LIBPNG_VER_STRING,&error_info,
MagickPNGErrorHandler,MagickPNGWarningHandler,(void *) NULL,
(png_malloc_ptr) Magick_png_malloc,(png_free_ptr) Magick_png_free);

#else
ping=png_create_write_struct(png_get_libpng_ver(NULL),&error_info,
ping=png_create_write_struct(PNG_LIBPNG_VER_STRING,&error_info,
MagickPNGErrorHandler,MagickPNGWarningHandler);

#endif
Expand Down

0 comments on commit 3e0971d

Please sign in to comment.