mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
- fix build for png-1.4.1
This commit is contained in:
parent
10bad669ae
commit
244c703e25
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251725
11
graphics/pngnq/files/patch-rwpng.c
Normal file
11
graphics/pngnq/files/patch-rwpng.c
Normal file
@ -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;
|
||||
}
|
11
graphics/pngquant/files/patch-rwpng.c
Normal file
11
graphics/pngquant/files/patch-rwpng.c
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user