zgv_5.9-2.patch 638 B

1234567891011121314151617181920212223242526272829
  1. --- zgv-5.9.orig/src/readpng.c
  2. +++ zgv-5.9/src/readpng.c
  3. @@ -55,7 +55,6 @@
  4. fclose(global_png_infile);
  5. }
  6. -
  7. void my_png_error(png_structp png_ptr,const char *message)
  8. {
  9. strncpy(jpeg_png_errmsg,message,JPEG_PNG_ERRMSG_SIZE-1);
  10. @@ -63,7 +62,7 @@
  11. use_errmsg=1;
  12. /* cleanup is done after jump back, so just do that now... */
  13. -longjmp(png_ptr->jmpbuf,1);
  14. +longjmp(png_jmpbuf((png_ptr)),1);
  15. }
  16. @@ -132,7 +131,7 @@
  17. return(_PICERR_NOMEM);
  18. }
  19. -if(setjmp(png_ptr->jmpbuf))
  20. + if (setjmp(png_jmpbuf((png_ptr))))
  21. {
  22. /* if we get here, there was an error. */
  23. /* don't use local variables here, they may have been blasted */