summaryrefslogtreecommitdiff
path: root/graphics/zgv/files/patch-readpng.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graphics/zgv/files/patch-readpng.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/zgv/files/patch-readpng.c b/graphics/zgv/files/patch-readpng.c
new file mode 100644
index 000000000000..e1983a329799
--- /dev/null
+++ b/graphics/zgv/files/patch-readpng.c
@@ -0,0 +1,20 @@
+--- src/readpng.c.orig 2004-10-31 16:00:23.000000000 +0100
++++ src/readpng.c 2012-05-06 16:05:53.000000000 +0200
+@@ -63,7 +63,7 @@
+ use_errmsg=1;
+
+ /* cleanup is done after jump back, so just do that now... */
+-longjmp(png_ptr->jmpbuf,1);
++longjmp( png_jmpbuf(png_ptr),1);
+ }
+
+
+@@ -132,7 +132,7 @@
+ return(_PICERR_NOMEM);
+ }
+
+-if(setjmp(png_ptr->jmpbuf))
++if(setjmp(png_jmpbuf(png_ptr)))
+ {
+ /* if we get here, there was an error. */
+ /* don't use local variables here, they may have been blasted */