summaryrefslogtreecommitdiff
path: root/sci-libs/pgplot/files/pgplot-libpng15.patch
blob: a3cefe1dde7712a38dad0bd54e33e6d93bef2f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/pndriv.c
+++ b/drivers/pndriv.c
@@ -222,7 +222,7 @@
 	return;
   }
 
-  if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */
+  if (setjmp(png_jmpbuf(png_ptr))) {
 	fprintf(stderr,"%s: error in libpng while writing file %s, plotting disabled\n", png_ident, filename);
 	png_destroy_write_struct(&png_ptr,&info_ptr);
 	dev->error = true;