4b97cd2fb4
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
15 lines
486 B
Diff
15 lines
486 B
Diff
--- a/src/loaders/SILLYPNGImageLoader.cpp 2006-06-19 00:42:12.000000000 +0200
|
|
+++ b/src/loaders/SILLYPNGImageLoader.cpp 2015-08-03 15:39:36.102606369 +0200
|
|
@@ -64,10 +64,8 @@
|
|
png_const_charp error)
|
|
{
|
|
// printf("PNG Error: %s\n", error);
|
|
- // copied from libpng's pngerror.cpp
|
|
- jmp_buf buf;
|
|
- memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
|
|
- longjmp(buf, 1);
|
|
+ // use png-1.6.18 png_longjmp() function
|
|
+ png_longjmp(png_ptr, 1);
|
|
}
|
|
|
|
|