From 244c703e25cf40b631e8f4f52ece8f2c83a1a89f Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Mon, 29 Mar 2010 13:38:27 +0000 Subject: [PATCH] - fix build for png-1.4.1 --- graphics/pngnq/files/patch-rwpng.c | 11 +++++++++++ graphics/pngquant/files/patch-rwpng.c | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 graphics/pngnq/files/patch-rwpng.c create mode 100644 graphics/pngquant/files/patch-rwpng.c diff --git a/graphics/pngnq/files/patch-rwpng.c b/graphics/pngnq/files/patch-rwpng.c new file mode 100644 index 000000000000..195051162411 --- /dev/null +++ b/graphics/pngnq/files/patch-rwpng.c @@ -0,0 +1,11 @@ +--- rwpng.c.orig 2006-06-15 11:39:29.000000000 +0200 ++++ rwpng.c 2010-03-29 15:35:32.000000000 +0200 +@@ -77,7 +77,7 @@ + * have used slightly more general png_sig_cmp() function instead */ + + fread(sig, 1, 8, infile); +- if (!png_check_sig(sig, 8)) { ++ if (png_sig_cmp(sig, 0, 8)) { + mainprog_ptr->retval = 21; /* bad signature */ + return mainprog_ptr->retval; + } diff --git a/graphics/pngquant/files/patch-rwpng.c b/graphics/pngquant/files/patch-rwpng.c new file mode 100644 index 000000000000..195051162411 --- /dev/null +++ b/graphics/pngquant/files/patch-rwpng.c @@ -0,0 +1,11 @@ +--- rwpng.c.orig 2006-06-15 11:39:29.000000000 +0200 ++++ rwpng.c 2010-03-29 15:35:32.000000000 +0200 +@@ -77,7 +77,7 @@ + * have used slightly more general png_sig_cmp() function instead */ + + fread(sig, 1, 8, infile); +- if (!png_check_sig(sig, 8)) { ++ if (png_sig_cmp(sig, 0, 8)) { + mainprog_ptr->retval = 21; /* bad signature */ + return mainprog_ptr->retval; + }