openbsd-ports/graphics/inkscape/patches/patch-src_sp-image_cpp
2012-07-13 15:10:47 +00:00

16 lines
755 B
Plaintext

$OpenBSD: patch-src_sp-image_cpp,v 1.2 2012/07/13 15:10:47 kili Exp $
Fix build with png-1.5.
--- src/sp-image.cpp.orig Thu Jul 12 18:27:13 2012
+++ src/sp-image.cpp Thu Jul 12 18:27:13 2012
@@ -389,7 +389,7 @@ static bool readPngAndHeaders( PushPull &youme, gint &
{
char* name = 0;
int compression_type = 0;
- char* profile = 0;
+ png_byte* profile = 0;
png_uint_32 proflen = 0;
if ( png_get_iCCP(pngPtr, infoPtr, &name, &compression_type, &profile, &proflen) ) {
// g_message("Found an iCCP chunk named [%s] with %d bytes and comp %d", name, proflen, compression_type);