diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-28 19:01:01 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-28 19:01:01 +0800 |
commit | fe98ddb77a12a85e615d2248ca76e04ddadcb999 (patch) | |
tree | b3482ed36576b0b57d7d81c2dced82a0e1e3e4b4 /graphics/libwmf | |
parent | 18109ceee161b11ded17706eed5743e48cfd616b (diff) | |
download | freebsd-ports-gnome-fe98ddb77a12a85e615d2248ca76e04ddadcb999.tar.gz freebsd-ports-gnome-fe98ddb77a12a85e615d2248ca76e04ddadcb999.tar.zst freebsd-ports-gnome-fe98ddb77a12a85e615d2248ca76e04ddadcb999.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics/libwmf')
-rw-r--r-- | graphics/libwmf/files/patch-gd_png.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/libwmf/files/patch-gd_png.c b/graphics/libwmf/files/patch-gd_png.c new file mode 100644 index 000000000000..70bddf8e923d --- /dev/null +++ b/graphics/libwmf/files/patch-gd_png.c @@ -0,0 +1,11 @@ +--- src/extra/gd/gd_png.c.orig 2010-03-28 12:44:53.000000000 +0200 ++++ src/extra/gd/gd_png.c 2010-03-28 12:45:16.000000000 +0200 +@@ -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 |