summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <pfaedit@users.sourceforge.net>2011-02-18 09:49:47 -0800
committerGeorge Williams <pfaedit@users.sourceforge.net>2011-02-18 09:49:47 -0800
commit81dd0e7e914a38bcb831c7b77a45413d6f1d231b (patch)
tree061436ca3fffd7b2faf89e47472911d723a22083
parente440daa288a82942aa7e12ea33ad9fbeba52771d (diff)
Barry points out a spot I missed in the libpng change the other day.
-rw-r--r--gutils/gimagewritepng.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gutils/gimagewritepng.c b/gutils/gimagewritepng.c
index 5319de53..ccca0316 100644
--- a/gutils/gimagewritepng.c
+++ b/gutils/gimagewritepng.c
@@ -324,7 +324,12 @@ return(false);
return(false);
}
- if (setjmp(*_png_set_longjmp_fn(png_ptr, longjmp, sizeof (jmp_buf)))) {
+#if (PNG_LIBPNG_VER < 10500)
+ if (setjmp(png_ptr->jmpbuf))
+#else
+ if (setjmp(*_png_set_longjmp_fn(png_ptr, longjmp, sizeof (jmp_buf))))
+#endif
+ {
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
return(false);
}