summaryrefslogtreecommitdiff
path: root/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch')
-rw-r--r--games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
new file mode 100644
index 000000000000..ad689e29d739
--- /dev/null
+++ b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/show_bug.cgi?id=308731
+
+--- src/loadpng.c
++++ src/loadpng.c
+@@ -55,7 +55,7 @@ unsigned char * load_png_file( const cha
+ }
+ /* ensure that we opened a PNG file */
+ fread( header, 1, 8, fd );
+- if ( ! png_check_sig( header, 8 ) ) {
++ if ( png_sig_cmp( header, 0, 8 ) ) {
+ fclose(fd);
+ fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file);
+ return NULL;