summaryrefslogtreecommitdiff
blob: f99d474cf04a1f0c3772ce2f7de8dce0e8ac260e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ruN simage-1.7.0/src/simage_png.c new/src/simage_png.c
--- simage-1.7.0/src/simage_png.c	2010-02-26 16:47:31.000000000 +0100
+++ new/src/simage_png.c	2013-06-06 22:34:23.537331509 +0200
@@ -323,7 +323,7 @@
   /* Set error handling.  REQUIRED if you aren't supplying your own
    * error hadnling functions in the png_create_write_struct() call.
    */
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     /* If we get here, we had a problem reading the file */
     fclose(fp);
     png_destroy_write_struct(&png_ptr,  (png_infopp)info_ptr);