summaryrefslogblamecommitdiff
path: root/user/xsane/xsane-0.999-libpng16.patch
blob: 2f947e73cc1b14ebfbf2e7fab6e22e675e8bdb84 (plain) (tree)



















                                                                           
--- xsane-0.999/src/xsane-save.c.old	2010-11-16 21:06:00.000000000 +0000
+++ xsane-0.999/src/xsane-save.c	2018-03-08 22:45:17.763964565 +0000
@@ -4910,7 +4910,7 @@
     return -1; /* error */
   }
 
-  if (setjmp(png_ptr->jmpbuf))
+  if (setjmp(png_jmpbuf(png_ptr)))
   {
     snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
     xsane_back_gtk_error(buf, TRUE);
@@ -5100,7 +5100,7 @@
     return -1; /* error */
   }
 
-  if (setjmp(png_ptr->jmpbuf))
+  if (setjmp(png_jmpbuf(png_ptr)))
   {
     snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
     xsane_back_gtk_error(buf, TRUE);