[libpng16] Update png_err() to use new typecast.

This commit is contained in:
Glenn Randers-Pehrson 2011-12-29 10:02:24 -06:00
parent fcd301daed
commit 0522f269e0

View File

@ -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. */