eed7c62887
All fixes by yours truly.
25 lines
770 B
Plaintext
25 lines
770 B
Plaintext
$OpenBSD: patch-jbig2_image_png_c,v 1.1 2011/07/08 20:38:00 naddy Exp $
|
|
|
|
Fix build with png-1.5.
|
|
|
|
--- jbig2_image_png.c.orig Thu Jul 7 08:44:06 2011
|
|
+++ jbig2_image_png.c Thu Jul 7 08:48:07 2011
|
|
@@ -33,7 +33,7 @@ jbig2_png_write_data(png_structp png_ptr, png_bytep da
|
|
{
|
|
png_size_t check;
|
|
|
|
- check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
|
|
+ check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr));
|
|
if (check != length) {
|
|
png_error(png_ptr, "Write Error");
|
|
}
|
|
@@ -43,7 +43,7 @@ static void
|
|
jbig2_png_flush(png_structp png_ptr)
|
|
{
|
|
png_FILE_p io_ptr;
|
|
- io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
|
|
+ io_ptr = (png_FILE_p)png_get_io_ptr(png_ptr);
|
|
if (io_ptr != NULL)
|
|
fflush(io_ptr);
|
|
}
|