1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- fix build for png-1.4.1

Submitted by:	Ion-Mihai Tetcu
This commit is contained in:
Dirk Meyer 2010-03-31 12:00:04 +00:00
parent 4e9d24b934
commit ebfc4f9e07
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251890

View File

@ -0,0 +1,11 @@
--- src/xitk/Imlib-light/load.c.orig 2003-07-15 00:44:10.000000000 +0200
+++ src/xitk/Imlib-light/load.c 2010-03-29 10:16:04.000000000 +0200
@@ -193,7 +193,7 @@
return 0;
fread(buf, 1, 8, f);
rewind(f);
- return (int)png_check_sig(buf, 8);
+ return (int)(png_sig_cmp(buf, 0, 8) == 0);
}
ImlibImage * Imlib_load_image(ImlibData * id, char *file) {