summarylogtreecommitdiffstats
path: root/fix_png.patch
diff options
context:
space:
mode:
authorKenjiTakahashi2015-07-05 02:48:52 +0200
committerKenjiTakahashi2015-07-05 02:48:52 +0200
commit89e5c09d848f145ca9901c3fee0b0715347d25eb (patch)
treeb2e72ac2fd87151199402b49949e208bc50624b6 /fix_png.patch
downloadaur-cnijfilter-mg4200.tar.gz
3.80-1: Initial commit
Diffstat (limited to 'fix_png.patch')
-rw-r--r--fix_png.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/fix_png.patch b/fix_png.patch
new file mode 100644
index 00000000000..a8acc59bd3d
--- /dev/null
+++ b/fix_png.patch
@@ -0,0 +1,23 @@
+diff -Naur a/cnijfilter/src/bjfimage.c b/cnijfilter/src/bjfimage.c
+--- a/cnijfilter/src/bjfimage.c 2012-03-17 12:19:45.912118222 +0100
++++ b/cnijfilter/src/bjfimage.c 2012-03-17 12:28:45.100456525 +0100
+@@ -1520,8 +1520,8 @@
+ short tmpformat;
+ short retbyte = 0;
+ short bpp = 3;
+- long width = 0;
+- long length = 0;
++ png_uint_32 width = 0;
++ png_uint_32 length = 0;
+ long rstep = 0;
+ long RasterLength = 0;
+ long i;
+@@ -1574,7 +1574,7 @@
+ goto onErr;
+ }
+
+- if (setjmp (png_p->jmpbuf))
++ if (setjmp (png_jmpbuf(png_p)))
+ {
+ png_destroy_read_struct(&png_p, &info_p, (png_infopp)NULL);
+ goto onErr;