ports/graphics/xsane/files/patch-src_xsane-save.c
Tobias Kortkamp d88f6a5645 Fix help menu which currently tries to open help files from
share/sane/xsane/doc instead of share/doc/xsane where they are
installed.

While here

- Add LICENSE_FILE
- Pet portlint: regenerate and rename patches
- Switch GIMP option to options helpers
- Fix pkg-message.  The GIMP plugin now shows up in File->Create and
  not in File->Acquire.

PR:		218989
Approved by:	lme (mentor), koalative@gmail.com (maintainer timeout, 4 weeks)
Differential Revision:	https://reviews.freebsd.org/D10752
2017-05-30 18:41:40 +00:00

20 lines
631 B
C

--- src/xsane-save.c.orig 2010-11-16 21:06:00 UTC
+++ src/xsane-save.c
@@ -4910,7 +4910,7 @@ int xsane_save_png(FILE *outfile, int co
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 @@ int xsane_save_png_16(FILE *outfile, int
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);