$NetBSD: patch-sb,v 1.1 2007/11/14 15:41:41 rillig Exp $ --- src/af/util/xp/ut_png.cpp.orig 2005-01-07 20:44:09.000000000 +0100 +++ src/af/util/xp/ut_png.cpp 2007-11-14 14:26:59.534916000 +0100 @@ -84,7 +84,7 @@ bool UT_PNG_getDimensions(const UT_ByteB myBB.pBB = pBB; myBB.iCurPos = 0; - png_set_read_fn(png_ptr, static_cast(&myBB), static_cast(_png_read)); + png_set_read_fn(png_ptr, static_cast(&myBB), _png_read); /* The call to png_read_info() gives us all of the information from the * PNG file before the first IDAT (image data chunk). REQUIRED