summaryrefslogtreecommitdiff
path: root/graphics/zgv/files/patch-readpng.c
blob: e1983a329799f378b90ad5f3cb273fd953d70e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */