summarylogtreecommitdiffstats
path: root/libpng15.patch
blob: ca808753a9212b228ae33527adb96298507eabe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -aur old/cnijfilter/src/bjfimage.c new/cnijfilter/src/bjfimage.c
--- old/cnijfilter/src/bjfimage.c	2011-02-17 02:45:45.000000000 +0100
+++ new/cnijfilter/src/bjfimage.c	2012-03-06 18:34:16.580291794 +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;