summaryrefslogtreecommitdiff
path: root/pgplot/pndriv.c.patch
blob: 4d8a22d3ee702f6a465be73290c196131102755c (plain)
1
2
3
4
5
6
7
8
9
10
11
-- drivers/pndriv.c 	2012-02-05 18:35:41.172818257 +0100
+++ drivers/pndriv.c	2012-02-05 18:36:34.389199228 +0100
@@ -222,7 +222,7 @@
 	return;
   }
 
-  if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */
+  if (setjmp(png_jmpbuf(png_ptr))) {/* not really sure what I'm doing here... */
 	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;