From 0522f269e00ecdfb7ff594baef4a543457cddedb Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Thu, 29 Dec 2011 10:02:24 -0600 Subject: [PATCH] [libpng16] Update png_err() to use new typecast. --- pngerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngerror.c b/pngerror.c index c2b8c73e0..5a5a73ab9 100644 --- a/pngerror.c +++ b/pngerror.c @@ -96,7 +96,7 @@ png_err,(png_const_structrp png_ptr),PNG_NORETURN) * will crash in this case. */ if (png_ptr != NULL && png_ptr->error_fn != NULL) - (*(png_ptr->error_fn))(png_ptr, ""); + (*(png_ptr->error_fn))(png_constcast(png_structrp,png_ptr), ""); /* If the custom handler doesn't exist, or if it returns, use the default handler, which will not return. */