summaryrefslogtreecommitdiff
path: root/pngerror.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-12-29 10:02:24 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-12-29 10:02:24 -0600
commit0522f269e00ecdfb7ff594baef4a543457cddedb (patch)
tree2ea46d0815e1a94887372ed05a0e6ce5200062ee /pngerror.c
parentfcd301daed8252bf6df4c2f60fadaf66317edb0d (diff)
downloadlibpng-0522f269e00ecdfb7ff594baef4a543457cddedb.tar.gz
[libpng16] Update png_err() to use new typecast.
Diffstat (limited to 'pngerror.c')
-rw-r--r--pngerror.c2
1 files changed, 1 insertions, 1 deletions
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. */