You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
853 B
30 lines
853 B
--- a/lib/make-imglib.c
|
|
+++ b/lib/make-imglib.c
|
|
@@ -86,7 +86,7 @@
|
|
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
|
|
info_ptr = png_create_info_struct (png_ptr);
|
|
|
|
- if (setjmp (png_ptr->jmpbuf)) {
|
|
+ if (setjmp (png_jmpbuf(png_ptr))) {
|
|
fclose (f);
|
|
continue;
|
|
}
|
|
--- a/lib/xwin.c
|
|
+++ b/lib/xwin.c
|
|
@@ -824,13 +824,13 @@
|
|
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
|
|
info_ptr = png_create_info_struct (png_ptr);
|
|
|
|
- if (setjmp (png_ptr->jmpbuf)) {
|
|
+ if (setjmp (png_jmpbuf(png_ptr))) {
|
|
fprintf(stderr, "Invalid PNG image!\n");
|
|
return;
|
|
}
|
|
|
|
file_bytes = src->file_data;
|
|
- png_set_read_fn (png_ptr, (voidp)&file_bytes, (png_rw_ptr)png_reader);
|
|
+ png_set_read_fn (png_ptr, (png_voidp)&file_bytes, (png_rw_ptr)png_reader);
|
|
|
|
png_read_info (png_ptr, info_ptr);
|
|
|