eed7c62887
All fixes by yours truly.
16 lines
454 B
Plaintext
16 lines
454 B
Plaintext
$OpenBSD: patch-wrlib_png_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
|
|
|
|
Fix build with png-1.5.
|
|
|
|
--- wrlib/png.c.orig Tue Jul 5 22:30:42 2011
|
|
+++ wrlib/png.c Tue Jul 5 22:31:03 2011
|
|
@@ -97,7 +97,7 @@ RLoadPNG(RContext *context, char *file, int index)
|
|
}
|
|
|
|
RErrorCode = RERR_INTERNAL;
|
|
- if (setjmp(png->jmpbuf)) {
|
|
+ if (setjmp(png_jmpbuf(png))) {
|
|
fclose(f);
|
|
png_destroy_read_struct(&png, &pinfo, &einfo);
|
|
if (image)
|