SHA256
8
0
forked from pool/libwmf
Files
libwmf/libwmf-0.2.8.4-gd_libpng.patch
Ruediger Oertel 736b4f62cd Accepting request 36892 from home:oertel:branches:openSUSE:Factory
Copy from home:oertel:branches:openSUSE:Factory/libwmf via accept of submit request 36892 revision 2.
Request was accepted with message:
forward

OBS-URL: https://build.opensuse.org/request/show/36892
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libwmf?expand=0&rev=10
2010-04-04 17:44:58 +00:00

12 lines
385 B
Diff

--- src/extra/gd/gd_png.c
+++ src/extra/gd/gd_png.c
@@ -136,7 +136,7 @@
/* first do a quick check that the file really is a PNG image; could
* have used slightly more general png_sig_cmp() function instead */
gdGetBuf (sig, 8, infile);
- if (!png_check_sig (sig, 8))
+ if (png_sig_cmp (sig, 0, 8))
return NULL; /* bad signature */
#ifndef PNG_SETJMP_NOT_SUPPORTED