summaryrefslogtreecommitdiff
path: root/user/xsane/xsane-0.999-libpng16.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/xsane/xsane-0.999-libpng16.patch')
-rw-r--r--user/xsane/xsane-0.999-libpng16.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/xsane/xsane-0.999-libpng16.patch b/user/xsane/xsane-0.999-libpng16.patch
new file mode 100644
index 000000000..2f947e73c
--- /dev/null
+++ b/user/xsane/xsane-0.999-libpng16.patch
@@ -0,0 +1,20 @@
+--- 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);