- fix build for png-1.4.1
This commit is contained in:
parent
0f1a19d23e
commit
11c7de586d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251751
1 changed files with 11 additions and 0 deletions
11
cad/leocad/files/patch-im_png.cpp
Normal file
11
cad/leocad/files/patch-im_png.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- common/im_png.cpp.orig 2000-09-16 19:18:01.000000000 +0200
|
||||
+++ common/im_png.cpp 2010-03-29 20:47:19.000000000 +0200
|
||||
@@ -34,7 +34,7 @@
|
||||
return NULL;
|
||||
|
||||
fread(sig, 1, 8, f);
|
||||
- if (!png_check_sig(sig, 8))
|
||||
+ if (png_sig_cmp(sig, 0, 8))
|
||||
{
|
||||
fclose(f);
|
||||
return NULL; // bad signature
|
Loading…
Reference in a new issue