19 lines
416 B
C
19 lines
416 B
C
--- png.c.orig 2003-06-21 17:31:51.000000000 +0200
|
|
+++ png.c 2012-05-06 06:59:14.000000000 +0200
|
|
@@ -6,6 +6,7 @@
|
|
#include <stdlib.h>
|
|
#include "to_png.h"
|
|
#include <png.h>
|
|
+#include <zlib.h>
|
|
|
|
#define PDNCOL 256
|
|
|
|
@@ -36,7 +37,7 @@
|
|
}
|
|
|
|
/* set up error handlimg for libpng */
|
|
- if (setjmp(png_ptr->jmpbuf)) {
|
|
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
return;
|
|
}
|