void-packages/srcpkgs/xsane/patches/fix-png_jmpbuf.patch

21 lines
592 B
Diff

--- src/xsane-save.c 2010-11-16 22:06:00.000000000 +0100
+++ src/xsane-save.c 2017-01-11 13:10:33.311935745 +0100
@@ -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);