aboutsummaryrefslogtreecommitdiff
path: root/graphics/cinepaint/files/patch-plug-ins-png-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/cinepaint/files/patch-plug-ins-png-png.c')
-rw-r--r--graphics/cinepaint/files/patch-plug-ins-png-png.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/cinepaint/files/patch-plug-ins-png-png.c b/graphics/cinepaint/files/patch-plug-ins-png-png.c
new file mode 100644
index 000000000000..88a9234da8f0
--- /dev/null
+++ b/graphics/cinepaint/files/patch-plug-ins-png-png.c
@@ -0,0 +1,28 @@
+--- plug-ins/png/png.c.orig 2006-11-24 21:52:55.000000000 +0100
++++ plug-ins/png/png.c 2012-04-27 19:08:52.000000000 +0200
+@@ -59,6 +59,7 @@
+ #include "libgimp/stdplugins-intl.h"
+
+ #include <png.h> /* PNG library definitions */
++#include <pngpriv.h>
+
+ /*
+ * Constants...
+@@ -405,7 +406,7 @@
+ info = (png_infop)calloc(sizeof(png_info), 1);
+ #endif /* PNG_LIBPNG_VER > 88 */
+
+- if (setjmp (pp->jmpbuf))
++ if (setjmp (png_jmpbuf(pp)))
+ {
+ g_message ("%s\nPNG error. File corrupted?", filename);
+ return image;
+@@ -824,7 +825,7 @@
+ info = (png_infop)calloc(sizeof(png_info), 1);
+ #endif /* PNG_LIBPNG_VER > 88 */
+
+- if (setjmp (pp->jmpbuf))
++ if (setjmp (png_jmpbuf(pp)))
+ {
+ g_message ("%s\nPNG error. Couldn't save image", filename);
+ return 0;