summaryrefslogtreecommitdiff
path: root/graphics/fbv/png16_api.diff
blob: 235b343666c783e53aa69e7e67e3f30543568ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naur fbv-1.0b/png.c fbv-1.0b.patched/png.c
--- fbv-1.0b/png.c	2003-08-24 16:22:22.000000000 -0400
+++ fbv-1.0b.patched/png.c	2015-11-22 12:21:33.247999000 -0500
@@ -69,7 +69,7 @@
         fclose(fh); return(FH_ERROR_FORMAT);
     }
     rp=0;
-    if (setjmp(png_ptr->jmpbuf))
+    if (setjmp(png_jmpbuf(png_ptr)))
     {
 	png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
         if(rp) free(rp);
@@ -161,7 +161,7 @@
         fclose(fh); return(FH_ERROR_FORMAT);
     }
     rp=0;
-    if (setjmp(png_ptr->jmpbuf))
+    if (setjmp(png_jmpbuf(png_ptr)))
     {
 	png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
         if(rp) free(rp);