summaryrefslogtreecommitdiff
path: root/chat/amsn/patches/patch-utils_TkCximage_src_CxImage_ximapng.h
blob: a9c0e56ea6265f6f5495ccf66b4926ec90a694fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-utils_TkCximage_src_CxImage_ximapng.h,v 1.2 2011/08/04 23:58:36 wiz Exp $

Fix build with png-1.5.
https://sourceforge.net/tracker/?func=detail&aid=3386428&group_id=54091&atid=472655

--- utils/TkCximage/src/CxImage/ximapng.h.orig	2008-03-07 19:14:37.000000000 +0000
+++ utils/TkCximage/src/CxImage/ximapng.h
@@ -64,8 +64,8 @@ protected:
 
     static void PNGAPI user_error_fn(png_structp png_ptr,png_const_charp error_msg)
 	{
-		strncpy((char*)png_ptr->error_ptr,error_msg,255);
-		longjmp(png_ptr->jmpbuf, 1);
+		strncpy((char*)png_get_error_ptr(png_ptr),error_msg,255);
+		longjmp(png_jmpbuf(png_ptr), 1);
 	}
 };