Mercurial > mxe-octave
comparison src/gd-1-libpng15.patch @ 1620:7cc1f4c38523
package gd: libpng15 compatibility
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Fri, 04 Mar 2011 03:27:12 +1100 |
parents | |
children | f653602a0500 |
comparison
equal
deleted
inserted
replaced
1619:4e295d6fc804 | 1620:7cc1f4c38523 |
---|---|
1 # This file is part of mingw-cross-env. | |
2 # See doc/index.html for further information. | |
3 | |
4 This patch has been taken from: | |
5 http://bugs.gentoo.org/show_bug.cgi?id=305101 | |
6 http://repos.archlinux.org/wsvn/packages/gd/trunk/libpng14.patch | |
7 | |
8 --- a/gd_png.c | |
9 +++ b/gd_png.c | |
10 @@ -149,7 +149,7 @@ | |
11 return NULL; | |
12 } | |
13 | |
14 - if (!png_check_sig (sig, 8)) { /* bad signature */ | |
15 + if (png_sig_cmp (sig, 0, 8)) { /* bad signature */ | |
16 return NULL; /* bad signature */ | |
17 } |