diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-29 21:38:27 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-29 21:38:27 +0800 |
commit | 6144cb2232905db7ce4ea37aa0a3cd6a92f18bab (patch) | |
tree | ebdf875346bad8f49d16ea445462b6b8cce979e1 /graphics/pngnq | |
parent | 2eac53c12b7df2eb6ba3d18f08a623216da6f83e (diff) | |
download | freebsd-ports-gnome-6144cb2232905db7ce4ea37aa0a3cd6a92f18bab.tar.gz freebsd-ports-gnome-6144cb2232905db7ce4ea37aa0a3cd6a92f18bab.tar.zst freebsd-ports-gnome-6144cb2232905db7ce4ea37aa0a3cd6a92f18bab.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics/pngnq')
-rw-r--r-- | graphics/pngnq/files/patch-rwpng.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; + } |