summaryrefslogtreecommitdiff
blob: a6ce342bd1685658022794061cb1e4760e83b62e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lib-src/enigma-core/IMG_SavePNG.c
+++ lib-src/enigma-core/IMG_SavePNG.c
@@ -84,7 +84,7 @@
                 png_bytep *row_pointers = 0;
 
                 /* Set error handling. */
-                if (setjmp(png_ptr->jmpbuf)) {
+                if (setjmp(png_jmpbuf(png_ptr))) {
                     IMG_SetError("Error writing the PNG file");
                 }
                 else {