diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2012-06-01 05:26:28 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2012-06-01 05:26:28 +0000 |
commit | 2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch) | |
tree | c04604583d8be53b3ed7f10975be828c731f87cb /games/xbubble/files/patch-src-loadpng.c | |
parent | 24315159daa0089f08acea4ba1b130fb6721ad5c (diff) | |
download | ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.tar.gz ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.zip |
Notes
Diffstat (limited to 'games/xbubble/files/patch-src-loadpng.c')
-rw-r--r-- | games/xbubble/files/patch-src-loadpng.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/games/xbubble/files/patch-src-loadpng.c b/games/xbubble/files/patch-src-loadpng.c index d7bf605ecb2a..3a0c67cf9712 100644 --- a/games/xbubble/files/patch-src-loadpng.c +++ b/games/xbubble/files/patch-src-loadpng.c @@ -1,6 +1,14 @@ --- src/loadpng.c.orig 2003-09-30 14:55:20.000000000 +0200 -+++ src/loadpng.c 2010-03-30 12:09:13.000000000 +0200 -@@ -55,7 +55,7 @@ ++++ src/loadpng.c 2012-04-29 13:39:04.000000000 +0200 +@@ -21,6 +21,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <png.h> ++#include <pngpriv.h> + + #include "gettext.h" + +@@ -55,7 +56,7 @@ } /* ensure that we opened a PNG file */ fread( header, 1, 8, fd ); @@ -9,3 +17,12 @@ fclose(fd); fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file); return NULL; +@@ -73,7 +74,7 @@ + return NULL; + } + /* libpng does a longjmp here when it encounters an error */ +- if ( setjmp( png_ptr->jmpbuf ) ) { ++ if ( setjmp( png_jmpbuf(png_ptr) ) ) { + png_destroy_read_struct( &png_ptr, &info_ptr, NULL); + fclose(fd); + return NULL; |