png16_api.diff 675 B

12345678910111213141516171819202122
  1. diff -Naur fbv-1.0b/png.c fbv-1.0b.patched/png.c
  2. --- fbv-1.0b/png.c 2003-08-24 16:22:22.000000000 -0400
  3. +++ fbv-1.0b.patched/png.c 2015-11-22 12:21:33.247999000 -0500
  4. @@ -69,7 +69,7 @@
  5. fclose(fh); return(FH_ERROR_FORMAT);
  6. }
  7. rp=0;
  8. - if (setjmp(png_ptr->jmpbuf))
  9. + if (setjmp(png_jmpbuf(png_ptr)))
  10. {
  11. png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
  12. if(rp) free(rp);
  13. @@ -161,7 +161,7 @@
  14. fclose(fh); return(FH_ERROR_FORMAT);
  15. }
  16. rp=0;
  17. - if (setjmp(png_ptr->jmpbuf))
  18. + if (setjmp(png_jmpbuf(png_ptr)))
  19. {
  20. png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
  21. if(rp) free(rp);